1.0.1 • Published 8 years ago
batch-indent v1.0.1
batch-indent
A cli tool to change the indentation type in multiple files.
Installation
npm i batch-indent -g
Usage
batch-indent -p "./src/**/*.js" -f 3-spaces -t tabs
Possible arguments are:
--pattern
-p ./src/**
Glob pattern to match files.
--from
-f 2-spaces
Type of indentation to find.
--to
-t tabs
Type of indentation to convert to.
Indentation types
The indentation type passed to --from and --to must be one of the following:
tabs1-space2-spaces3-spaces4-spaces5-spaces6-spaces7-spaces8-spaces