1.2.2 • Published 2 years ago

@codelicia/jsoncs v1.2.2

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

JSON Code Style

NPM Version npm.io

Command line interface

Install jsoncs with npm to use the command line interface:

npm install @codelicia/jsoncs --save-dev

Verify if the code style is fine:

./node_modules/.bin/jsoncs 'my/file.json'

or to multiple files

./node_modules/.bin/jsoncs 'my/*.json'

Fix the code style of a file or multiple files:

./node_modules/.bin/jsoncs --fix 'my/directory/*'

Options

$ jsoncs -h

Usage: jsoncs [file]

Options:
   -f, --fix                fix json file
   -q, --quiet              quiet mode
   -v, --version            json code style version
   -s, --spaces <integer>   quantity of spaces to indent the json (default: 2)

Example

  • RED: wrong json
  • BLUE: correct json

npm.io

1.2.2

2 years ago

1.2.0

4 years ago

1.1.4

4 years ago

1.1.3

4 years ago

1.1.2

4 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.0

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago