srn / jlint

cli that parses the json you have in your current clipboard

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

jlint Build Status

cli that parses the JSON you have in your current clipboard

screenshot

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

About

cli that parses the json you have in your current clipboard

License:MIT License


Languages

Language:JavaScript 100.0%