krakenjs / Shush
Licence: other
A simple module for reading JSON files that may have comments.
Stars: ✭ 87
Programming Languages
javascript
184084 projects - #8 most used programming language
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.
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].