Skip to content

Latest commit

 

History

History
22 lines (18 loc) · 435 Bytes

README.md

File metadata and controls

22 lines (18 loc) · 435 Bytes
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.