Strip comments from JSON. Lets you use comments in your JSON files!
It also strips trailing commas.
npm install --global strip-json-comments-cli
$ strip-json-comments --help
Usage
$ strip-json-comments <input-file> > <output-file>
$ strip-json-comments < <input-string>
Options
--no-whitespace Remove comments instead of replacing them with whitespace
Example
$ strip-json-comments input.json > output.json
- strip-json-comments - API for this module