Skip to content

daixque/prettyprint

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PrettyPrint

PrettyPrint is cli tool for pritty printing. It supports JSON and XML format.

Install

$ gem install prettyprint

Usage

prittyprint has 2 subcommands; json, xml. prittyprint supports file and stdin.

Pretty printing JSON from file:

$ prettyprint json input.json

Pretty printing XML from stdin:

$ echo '<html><title>prettyprint</title><body>happy pretty printing</body></html>' | prettyprint xml
<html>
 <title>
  prettyprint
 </title>
 <body>
  happy pretty printing
 </body>
</html>

About

cli tool for pretty print

Resources

License

Stars

Watchers

Forks

Packages

No packages published