Community

Node’s require() Function Can Seamlessly Switch Between .json And .json.js Files

(Ben Nadel) Last year, I wrote a quick blog post about Node.js’ ability to read in JSON (JavaScript Object Notation) files using the require() function. This feature, which I use all the time, is an awesome way to synchronously read in configuration or migration data.

Read More - Register for Free Membership