https://github.com/srn/jlint
cli that parses the json you have in your current clipboard
https://github.com/srn/jlint
clipboard javascript json parse
Last synced: about 1 year ago
JSON representation
cli that parses the json you have in your current clipboard
- Host: GitHub
- URL: https://github.com/srn/jlint
- Owner: srn
- License: mit
- Created: 2014-09-21T13:39:38.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2015-11-23T02:49:20.000Z (over 10 years ago)
- Last Synced: 2025-03-26T20:12:44.261Z (about 1 year ago)
- Topics: clipboard, javascript, json, parse
- Language: JavaScript
- Homepage:
- Size: 45.9 KB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 4
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
README
# jlint [](https://travis-ci.org/srn/jlint)
> cli that parses the JSON you have in your current clipboard

## Install
```sh
$ npm i -g jlint
```
## Usage
```sh
$ 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:
```sh
$ cat log.json | jlint
```
Glob support:
```sh
$ jlint --glob './*.js'
```
Or just pass in files:
```sh
$ jlint package.json test.js
```
## License
MIT © [Søren Brokær](http://srn.io)