3 ms·
I could forgive anyone for not knowing about requiring json files in node. It is kind of arcane. But 1000 lines? var x = JSON.parse(fs.readFileSync('filen
by geon 10y ago
I could forgive anyone for not knowing about requiring json files in node. It is kind of arcane.
But 1000 lines?
var x = JSON.parse(fs.readFileSync('filename.json'));