1.0.1 • Published 2 years ago

json-do-minify v1.0.1

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

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