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 };
|