showing results for - "node js reuire json shows onject"
Emma
07 Jun 2018
1var readJson = (path, cb) => {
2  fs.readFile(require.resolve(path), (err, data) => {
3    if (err)
4      cb(err)
5    else
6      cb(null, JSON.parse(data))
7  })
8}
9