Next Phenomenal Microbrewery
Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

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

70,551

version

1.0.0

license

MIT

repository

githubgithub

last publish

collaborators

  • avatar
  • avatar
  • avatar