1.0.4 • Published 9 years ago

reindent v1.0.4

Weekly downloads
6
License
ISC
Repository
github
Last release
9 years ago

reindent

NPM version Downloads Dependency Status

Reindent and trim code

Installation

npm i reindent -g

Usage

God! it is too complex, close this project!

reindent *.js *.json

complex usage

find . -name '*.js' -exec reindent {} +

Option

  Usage: reindent [options] <file ...>

  Options:

    -h, --help      output usage information
    -V, --version   output the version number
    -i, --in-place  edit files in place like sed -i
    -v, --verbose   verbose info
    --indent [val]  code indent, default is tab

Support

  • javascript
  • json

Don't support below

if ()
	code

use

if () code

or

if () {
	code
}

Don't write open bracket at the end of comment

// something {
// it will be indented

License

License

1.0.4

9 years ago

1.0.3

9 years ago

1.0.2

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago