Skip to content

Instantly share code, notes, and snippets.

@quickredfox
Created April 19, 2011 17:20
Show Gist options
  • Save quickredfox/928900 to your computer and use it in GitHub Desktop.
Save quickredfox/928900 to your computer and use it in GitHub Desktop.
require.extensions[".json"] = function (module, filename) {
module.exports = JSON.parse(require("fs").readFileSync(filename, "utf8"))
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment