Skip to content

wangchaoyi/json-prettier

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Terminal json pretty print

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published