Skip to content

Instantly share code, notes, and snippets.

@imjacobclark
Created April 5, 2013 20:45
Show Gist options
  • Save imjacobclark/5322482 to your computer and use it in GitHub Desktop.
Save imjacobclark/5322482 to your computer and use it in GitHub Desktop.
underscore.js, node & json
{
"username" : "imjacobclark",
"email" : "[email protected]",
"website" : "http://fusionstrike.com"
}
var fs = require('fs');
var _ = require('underscore');
var contents = fs.readFileSync('config.json');
var configs = JSON.parse(contents);
_.forEach(configs, function(config){
console.log(config);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment