var config = JSON.parse(fs.readFileSync('./config.json'))
easier with:
config = require('./config.json')
You are viewing a single comment's thread from:
var config = JSON.parse(fs.readFileSync('./config.json'))
easier with:
config = require('./config.json')
Thanks :)
I learned of this myself recently as well, and it is so much better.