json-minify

A commandline utility to minify JSON files

Stats

StarsIssuesVersionUpdatedCreatedSize
json-minify
1.0.010 years ago10 years agoMinified + gzip package size for json-minify in KB

Readme

Minify JSON

The opposite of Pretty-Print JSON; For all the times you want to rid of whitespace.

{
    "foo": "bar"
}

becomes

{"foo":"bar"}

Usage

Specify a file:

json-minify /path/to/data.json

Or pipe from stdin:

curl -s http://foobar3000.com/echo/echo.json | json-minify

wget -qO- http://foobar3000.com/echo/echo.json | json-minify

Installation

npm install -g json-minify

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.