Meet npm Pro: unlimited public & private packages + package-based permissions.Learn more »

shush

1.0.0 • Public • Published
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.

Keywords

none

Install

npm i shush

DownloadsWeekly Downloads

152,227

Version

1.0.0

License

MIT

Last publish

Collaborators

  • avatar
  • avatar
  • avatar