json-do-minify

1.0.1 • Public • Published

json-do-minify

Node.js CLI tool for minifying json by reducing unwanted fields.

Usage

Recommended

npx json-do-minify --target /home/user/dir-with-json-files --out /home/user/dir-with-out-json-files

With cache, so prompt doesn't appear each time

npx json-do-minify --target /home/user/dir-with-json-files --out /home/user/dir-with-out-json-files --use-cache

Alternative

Just run:

npx json-do-minify 

OR with cache

npx json-do-minify --use-cache

Which will promt input for target directory and output directory:

? Select target directory to read json files from (/home/user/Downloads/extract-transformer/target)
? Select output directory to output minified json files (/home/user/Downloads/extract-transformer/out)

Options

--target or -t: Target directory to read json files from

--out or -o: Output directory to output minified json files

--use-cache: It will extract only keys from previous session depending on the json file without a promt

/json-do-minify/

    Package Sidebar

    Install

    npm i json-do-minify

    Weekly Downloads

    4

    Version

    1.0.1

    License

    ISC

    Unpacked Size

    4.97 kB

    Total Files

    4

    Last publish

    Collaborators

    • baze5