1.0.2 • Published 5 years ago

clean-deep-cli v1.0.2

Weekly downloads
-
License
MIT
Repository
gitlab
Last release
5 years ago

clean-deep-cli

This package provides a tiny CLI interface for clean-deep library.

It allows a direct clean-up of .json files or standard input stream.

Status

npm version

Installation

Install only for current project:

$ npm install clean-deep-cli --save-dev

Install globally:

$ npm install -g clean-deep-cli

Usage

Local installation:

$ npx clean-deep-cli [args]

Global installation:

$ clean-deep-cli [args]

Use --help as an argument to get a list of options.

Examples

Clean a local .json file

Content of messy.json file with empty values:

{
        "a": 1,
        "b": "",
        "c": {},
        "d": [],
        "e": [{"f": "", "g": null}]
}

Remove unused fields and write to clean.json:

$ npx clean-deep-cli -i messy.json -o clean.json

Content of clean.json:

{"a":1}
1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago