Skip to content
/ jlint Public

cli that parses the json you have in your current clipboard

License

Notifications You must be signed in to change notification settings

srn/jlint

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

73 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published