mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-02-21 11:04:47 -05: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 };
|