node package manager

eyes-cli

CLI JSON inspector with cloudhead/eyes.js

eyes-cli

NPM version NPM dependencies

CLI JSON inspector with eyes.js from cloudhead. Pretty colors!

Install

$ npm install -g eyes-cli

Usage

$ eyes --help
Usage: eyes [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

Examples

Sources

From file:

$ ls
package.json component.json
 
$ eyes package.json

Or many files:

$ ls
package.json component.json
 
$ eyes package.json component.json

Pipe from any source:

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