Skip to content

SyntaxError2505/jlook

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Jlook

because your json deserves better

Usage

After installing jlook, it is really easy to use. Just call the executable trough a shell like

jlook

It will ask for a single-line input of valid JSON and, after confirming by pressing enter, try to print out a goodlooking and readable version of whatever you typed in. Also, so you don't have to copy it in every time, you can pipe a string into it like this in bash:

cat test.json | jlook

It will just print out the pretty result which you can pipe pipe into any utility you like. I recommend trying tee to write it into a file like this:

cat test.json | jlook | tee pretty_test.json

Building

Jlook does not depend on any libraries beyond glibc. You will need the gnu c compiler gcc and the make build system. It is designed to be used on a unix-like-system which means that it will probably compile on something else but is not tested.

A build process would look like this:

git clone https://github.com/SyntaxError2505/jlook.git
cd jlook

make DEBUG=0 # If you want to use a debugger on it, set it to 1 or just don't set it (Debug is the standard)
sudo make install # Specify install direcory by using: make install PREFIX=path/to/install

Uninstalling

We offer a uninstall target that you can use in the directory like this:

sudo make uninstall

it does the same as:

sudo rm -f $(which jlook)

About

A cli json pretty maker for piping

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors