README
jlint
cli that parses the JSON you have in your current clipboard
Install
$ npm i -g jlint
Usage
$ jlint --help
Usage
$ jlint
Options
-s, --silent Don't output json, just parse
-g, --glob Files to match using glob pattern
Examples
$ jlint --silent
✔
$ jlint --glob './*.js'
✖ ./cli.js
Unexpected token '#' at 1:1
#!/usr/bin/env node
^
$ jlint package.json test.js --silent
✔ package.json
✖ test.js
$ cat package.json | jlint --silent
✔
Piping also works:
$ cat log.json | jlint
Glob support:
$ jlint --glob './*.js'
Or just pass in files:
$ jlint package.json test.js
License
MIT © Søren Brokær