1.0.4 • Published 11 years ago
reindent v1.0.4
reindent
Reindent and trim code
Installation
npm i reindent -gUsage
God! it is too complex, close this project!
reindent *.js *.jsoncomplex 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 tabSupport
- javascript
- json
Don't support below
if ()
codeuse
if () codeor
if () {
code
}Don't write open bracket at the end of comment
// something {
// it will be indented