-
-
Save championswimmer/8d40b176603cfde343f9a47a68229303 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const fs = require('fs') | |
let jsonData = {} | |
fs.readFile('file.json', 'utf-8', (err, data) => { | |
if (err) throw err | |
jsonData = JSON.parse(data) | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment