mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-09-24 23:01:18 +08:00
feat: 1st attempt repo restructure
This commit is contained in:
committed by
mrugesh mohapatra
parent
51d7b02dae
commit
ae7b1eba37
@@ -0,0 +1,9 @@
|
||||
const fs = require('fs');
|
||||
|
||||
const openJSONFile = fileName => {
|
||||
const data = JSON.parse(fs.readFileSync(fileName, 'utf8'));
|
||||
console.log('Opened JSON file')
|
||||
return data;
|
||||
};
|
||||
|
||||
module.exports = { openJSONFile };
|
||||
Reference in New Issue
Block a user