Skip to content

Latest commit

 

History

History
33 lines (22 loc) · 886 Bytes

readme.md

File metadata and controls

33 lines (22 loc) · 886 Bytes

Terminal json pretty print

install

npm install -g json-prettier

or

yarn global add json-prettier

How to use

  1. format string
jpp '{"name":"json-prettier","version":"0.0.1","description":"json printer pretty","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"bin":{"jp":"index.js"},"keywords":["json","format","pretty","hignlight"],"author":"Walle","license":"MIT"}'
  1. recevie string
echo '{"name":"json-prettier","version":"0.0.1","description":"json printer pretty","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"bin":{"jp":"index.js"},"keywords":["json","format","pretty","hignlight"],"author":"Walle","license":"MIT"}' | jpp
output

Thanks

https://stackoverflow.com/a/33707230