Steve Bennett
Member since Jan 7, 2016
- Profile: /members/12995-steve-bennett.htm
- URL: http://stevebennett.me
- Comments: 1
Recent Blog Comments By Steve Bennett
-
You Can Use require() To Load JSON (JavaScript Object Notation) Files In Node.js
Posted on Jan 7, 2016 at 1:19 AM
On the plus side, using a ".js" file means you don't have to use strict JSON format. Hence: { foo: 'blah', bar: foo + '/blah.html' // this must be an HTML file } rather than { "foo": "blah", "bar": "blah/blah.html" }... read more »