reindent

1.0.4 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i reindent

Weekly Downloads

15

Version

1.0.4

License

ISC

Last publish

Collaborators

  • ftft1885