Skip to content

Instantly share code, notes, and snippets.

@NuckChorris
Created October 3, 2011 13:53
Show Gist options
  • Select an option

  • Save NuckChorris/1259145 to your computer and use it in GitHub Desktop.

Select an option

Save NuckChorris/1259145 to your computer and use it in GitHub Desktop.
require.extensions['.json'] = function (module, filename) {
var content = require('fs').readFileSync(filename, 'utf8');
module.exports = JSON.parse(content);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment