mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-23 13:00:41 -04:00
9 lines
178 B
JavaScript
9 lines
178 B
JavaScript
const fs = require('fs');
|
|
|
|
const openJSONFile = fileName => {
|
|
const data = JSON.parse(fs.readFileSync(fileName, 'utf8'));
|
|
return data;
|
|
};
|
|
|
|
module.exports = { openJSONFile };
|