Skip to content

Instantly share code, notes, and snippets.

@championswimmer
Created December 5, 2017 10:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save championswimmer/8d40b176603cfde343f9a47a68229303 to your computer and use it in GitHub Desktop.
Save championswimmer/8d40b176603cfde343f9a47a68229303 to your computer and use it in GitHub Desktop.
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