{"bugs":{"url":"https://github.com/numbcoder/json-comments/issues"},"dist":{"shasum":"be9b111a216c744632fd3e5aa82634b2c208e441","tarball":"https://registry.npmjs.org/json-comments/-/json-comments-0.2.1.tgz","integrity":"sha512-EMZly7bozXdoXk7bWnDIiOOUPZHRra88AtZmwwnzHiDuESW3M3oCtOn2Wycj3vNdZunRcVvluskdGfHVffpeCA==","signatures":[{"sig":"MEUCIQC+YOupn/aTnApPF21ngjuT/eW5Gf82Q+YtF5lm5bZUSgIgNoEs1QUx2ewukvwoarbE+PNGLld61AJZdEujpIsBcZw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","name":"json-comments","tags":["json","comments","require","config","comment"],"_from":".","author":{"name":"Johnny Wong","email":"wzhao23@gmail.com"},"readme":"# Json Comments ![NPM version](https://badge.fury.io/js/json-comments.png)\n\nMake your json config support comments.\n\n## Installation\n\n```bash\n$ npm install json-comments\n```\n\n### Syntax:\n\n```javascript\n// require `json-comments` in your main module only once\nrequire('json-comments');\n```\n\n### Examples:\n\n`config.json`\n```javascript\n{\n  // this is host\n  \"host\" : \"localhost\",\n\n  \"port\" : 3000, //port\n\n  \"url\" : \"https://github.com/numbcoder\", /* url */\n\n  /*\n  * comments support for json\n  */\n  \"username\": \"abc\"\n}\n```\n\n`app.js`\n```javascript\nrequire('json-comments');\nvar config = require('./config');\n\nconsole.log(config);\n// ...\n```\n\n#### Parse JSON string\n```js\nvar JSONC = require('json-comments');\nvar fs = require('fs');\n\nvar content = fs.readFileSync('./config.json', 'utf8');\n// parse JSON String\nvar config = JSONC.parse(content);\n\nconsole.log(config);\n```\n\n#### Minify the JSON string\n```js\nvar JSONC = require('json-comments');\nvar fs = require('fs');\n\nvar content = fs.readFileSync('./config.json', 'utf8');\n\n// remove comments and spaces from JSON String\nvar JsonStr = JSONC.minify(content);\n```\n\n## License\nMIT\n\n","license":"MIT","scripts":{"test":"node test/test.js"},"_npmUser":{"name":"numbcoder","email":"wzhao23@gmail.com"},"homepage":"https://github.com/numbcoder/json-comments","repository":{"url":"git://github.com/numbcoder/json-comments.git","type":"git"},"_npmVersion":"1.3.13","description":"Make your json config file support comments.","maintainers":[{"name":"numbcoder","email":"wzhao23@gmail.com"}],"readmeFilename":"README.md","_id":"json-comments@0.2.1","version":"0.2.1"}