kriswill / json-fmt

Compact JSON formatter for the command line

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

json-fmt

Compact JSON formatter for the command line

Install

yarn global add https://github.com/kriswill/json-fmt

This will create a global command json-fmt

Use

cat package.json | json-fmt

Emits formatted JSON to stdout, pipe to new files as you please..

echo "$(cat my.json | json-fmt)" >| my.json

Replaces my.json file with formatted JSON content

About

Compact JSON formatter for the command line

License:MIT License


Languages

Language:JavaScript 100.0%