An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

# jlint [![Build Status](http://img.shields.io/travis/srn/jlint.svg?style=flat-square)](https://travis-ci.org/srn/jlint)

> cli that parses the JSON you have in your current clipboard

![screenshot](screenshot.png)

## 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)