Skip to content

Instantly share code, notes, and snippets.

@derekpeterson
Created March 18, 2016 19:06
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 derekpeterson/cbdf05910e3bd6cbea95 to your computer and use it in GitHub Desktop.
Save derekpeterson/cbdf05910e3bd6cbea95 to your computer and use it in GitHub Desktop.
// Save the raw JSON paste to file.json
// Then start up a Node REPL and do this
var data = require('./file.json');
var fs = require('fs');
fs.writeFileSync('./formatted-file.json', JSON.stringify(data, null, 2));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment