A cli tool to change the indentation type in multiple files.
npm i batch-indent -g
batch-indent -p "./src/**/*.js" -f 3-spaces -t tabs
Possible arguments are:
Glob pattern to match files.
Type of indentation to find.
Type of indentation to convert to.
The indentation type passed to --from
and --to
must be one of the following:
tabs
1-space
2-spaces
3-spaces
4-spaces
5-spaces
6-spaces
7-spaces
8-spaces