Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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!

Awesome Lists containing this project

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 --help

Usage
$ strip-json-comments >
$ strip-json-comments <

Options
--no-whitespace Remove comments instead of replacing them with whitespace

Example
$ strip-json-comments input.json > output.json
```

## Related

- [strip-json-comments](https://github.com/sindresorhus/strip-json-comments) - API for this module