{"name":"strip-json-comments","version":"1.0.4","description":"Strip comments from JSON. Lets you use comments in your JSON files!","keywords":["json","strip","remove","delete","trim","comments","multiline","parse","config","configuration","conf","settings","util","env","environment","cli","bin"],"license":"MIT","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"files":["cli.js","strip-json-comments.js"],"main":"strip-json-comments","bin":{"strip-json-comments":"cli.js"},"repository":{"type":"git","url":"https://github.com/sindresorhus/strip-json-comments"},"scripts":{"test":"mocha --ui tdd"},"devDependencies":{"mocha":"*"},"engines":{"node":">=0.8.0"},"readme":"# strip-json-comments [![Build Status](https://travis-ci.org/sindresorhus/strip-json-comments.svg?branch=master)](https://travis-ci.org/sindresorhus/strip-json-comments)\n\n> Strip comments from JSON. Lets you use comments in your JSON files!\n\nThis is now possible:\n\n```js\n{\n\t// rainbows\n\t\"unicorn\": /* ❤ */ \"cake\"\n}\n```\n\nIt will remove single-line comments `//` and multi-line comments `/**/`.\n\nAlso available as a [gulp](https://github.com/sindresorhus/gulp-strip-json-comments)/[grunt](https://github.com/sindresorhus/grunt-strip-json-comments)/[broccoli](https://github.com/sindresorhus/broccoli-strip-json-comments) plugin.\n\n-\n\n*There's also [`json-comments`](https://npmjs.org/package/json-comments), but it's only for Node.js, inefficient, bloated as it also minifies, and comes with a `require` hook, which is :(*\n\n\n## Install\n\n```sh\n$ npm install --save strip-json-comments\n```\n\n```sh\n$ bower install --save strip-json-comments\n```\n\n```sh\n$ component install sindresorhus/strip-json-comments\n```\n\n\n## Usage\n\n```js\nvar json = '{/*rainbows*/\"unicorn\":\"cake\"}';\nJSON.parse(stripJsonComments(json));\n//=> {unicorn: 'cake'}\n```\n\n\n## API\n\n### stripJsonComments(input)\n\n#### input\n\nType: `string`\n\nAccepts a string with JSON and returns a string without comments.\n\n\n## CLI\n\n```sh\n$ npm install --global strip-json-comments\n```\n\n```sh\n$ strip-json-comments --help\n\nstrip-json-comments input-file > output-file\n# or\nstrip-json-comments < input-file > output-file\n```\n\n\n## Related\n\n- [`strip-css-comments`](https://github.com/sindresorhus/strip-css-comments)\n\n\n## License\n\nMIT © [Sindre Sorhus](http://sindresorhus.com)\n","readmeFilename":"readme.md","bugs":{"url":"https://github.com/sindresorhus/strip-json-comments/issues"},"homepage":"https://github.com/sindresorhus/strip-json-comments","_id":"strip-json-comments@1.0.4","_shasum":"1e15fbcac97d3ee99bf2d73b4c656b082bbafb91","_from":"https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-1.0.4.tgz","_resolved":"https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-1.0.4.tgz"}