Skip to content

jorisroling/yves-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

yves-cli

CLI JSON inspector with yves from Joris Röling. Pretty colors!

Install

$ npm install -g yves-cli

Usage

$ yves --help
Usage: yves [options] <file ...>

  Options:

    -h, --help             output usage information
    -V, --version          output the version number
    --no-pretty            no pretty formatting
    --no-color             no color
    -m, --max-length <n>   max length
    -r, --root <path>      set dot notated root field
    -f, --fields <fields>  comma separated fields
    -q, --query <expr>     query data with expr (ala mongo)
    -h, --help             output usage information    

Examples

Sources

From file:

$ ls
package.json component.json

$ yves package.json

Or many files:

$ ls
package.json component.json

$ yves package.json component.json

Pipe from any source:

$ curl -s "https://api.github.com/users/jorisroling" | yves
$ echo '{"foo": {"bar": 0}}' | yves 
{
    foo: { bar: 0 }
}

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published