clean-deep-cli

1.0.2 • Public • Published

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}

/clean-deep-cli/

    Package Sidebar

    Install

    npm i clean-deep-cli

    Weekly Downloads

    2

    Version

    1.0.2

    License

    MIT

    Unpacked Size

    5.46 kB

    Total Files

    5

    Last publish

    Collaborators

    • anana5