Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

batch-indent

1.0.1 • Public • Published

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:

  • tabs
  • 1-space
  • 2-spaces
  • 3-spaces
  • 4-spaces
  • 5-spaces
  • 6-spaces
  • 7-spaces
  • 8-spaces

Keywords

none

install

npm i batch-indent

Downloadsweekly downloads

0

version

1.0.1

license

MIT

repository

githubgithub

last publish

collaborators

  • avatar