1
0
mirror of https://github.com/mgerb/mywebsite synced 2026-01-12 02:42:48 +00:00
Files
mywebsite/node_modules/forever/node_modules/shush
2015-10-28 14:37:06 -04:00
..
2015-10-28 14:37:06 -04:00
2015-10-28 14:37:06 -04:00
2015-10-28 14:37:06 -04:00
2015-10-28 14:37:06 -04:00
2015-10-28 14:37:06 -04:00
2015-10-28 14:37:06 -04:00
2015-10-28 14:37:06 -04:00

shush

Hush up those JSON comments.

shush is a simple node module that allows JSON files containing comments to be read into a module using a require-like syntax.

/* jsonWithComments.js */
{
    // a property
    "myProp": "isCool"
}
// foo.js
var shush = require('shush'),
    config = shush('./jsonWithComments');

console.log(config); // {"myProp": "isCool"}

Forthcoming feature: streaming.