@codelicia/jsoncs
JSON Code Style
Last updated a month ago by airtonzanon .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @codelicia/jsoncs -g
SYNC missed versions from official npm registry.

JSON Code Style

NPM Version

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 the file
   -q, --quiet              Run in quiet mode
   -v, --version            print version and exit

Example

  • RED: wrong json
  • BLUE: correct json

TO-DO

  • Leave the code style to the user in a config file

Current Tags

  • 1.1.3                                ...           latest (a month ago)

8 Versions

  • 1.1.3                                ...           a month ago
  • 1.1.2                                ...           4 months ago
  • 1.1.1                                ...           7 months ago
  • 1.1.0                                ...           8 months ago
  • 1.0.0                                ...           9 months ago
  • 0.1.1 [deprecated]           ...           9 months ago
  • 0.0.2 [deprecated]           ...           9 months ago
  • 0.0.1 [deprecated]           ...           9 months ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 8
Last Day 0
Last Week 8
Last Month 11
Dependencies (3)
Dev Dependencies (2)
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |