Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sindresorhus/strip-json-comments-cli
Strip comments from JSON. Lets you use comments in your JSON files!
https://github.com/sindresorhus/strip-json-comments-cli
Last synced: 5 days ago
JSON representation
Strip comments from JSON. Lets you use comments in your JSON files!
- Host: GitHub
- URL: https://github.com/sindresorhus/strip-json-comments-cli
- Owner: sindresorhus
- License: mit
- Created: 2015-11-18T14:25:11.000Z (almost 9 years ago)
- Default Branch: main
- Last Pushed: 2023-08-07T23:58:35.000Z (about 1 year ago)
- Last Synced: 2024-04-13T17:56:40.835Z (6 months ago)
- Language: JavaScript
- Size: 11.7 KB
- Stars: 65
- Watchers: 8
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
- awesome-cli-apps - strip-json-comments-cli - Strip comments from JSON. (Data Manipulation / JSON)
- fucking-awesome-cli-apps - strip-json-comments-cli - Strip comments from JSON. (Data Manipulation / JSON)
README
# strip-json-comments-cli
> Strip comments from JSON. Lets you use comments in your JSON files!
It also strips trailing commas.
## Install
```sh
npm install --global strip-json-comments-cli
```## Usage
```
$ strip-json-comments --helpUsage
$ strip-json-comments >
$ strip-json-comments <Options
--no-whitespace Remove comments instead of replacing them with whitespaceExample
$ strip-json-comments input.json > output.json
```## Related
- [strip-json-comments](https://github.com/sindresorhus/strip-json-comments) - API for this module