0.0.11 • Published 9 years ago
lazy-json v0.0.11
lazy-json 
lazy-json makes it happen to require JSON file with comments in it.
It's awesome for lazy-json
to work with Atom plugin language-json-comments
!
Install
npm install --save lazy-json
Example
// test.lazy.json
{
// here is my comments
"github": "oriented programming"
/* things all done
** go home
*/
}
// usage
import { requireJSON } from 'lazy-json'
const obj = requireJSON('./test.lazy')
console.log(obj.github)
Related
License
MIT © EGOIST