1.1.3 • Published 5 years ago

enforcetabs v1.1.3

Weekly downloads
3
License
MIT
Repository
github
Last release
5 years ago

enforcetabs

enforcetabs is a tiny cli for detecting and replacing space indentation with tabs.

  • Only "non-gitignored" files are processed by default.
  • The tab width is automatically determined.
  • Line endings are kept as they are.

Installation

npm i -g enforcetabs

Usage

enforcetabs [[--paths] <paths...>] \
	[--extnames|-e <extnames...>] \
	[--encoding <encoding>] \
	[--no-gitignore]

# 'enft' can be used as a shortcut for 'enforcetabs'
paths

Specify one or more paths to scan. If the path denotes a file, conditions like gitignore files and extension names are ignored. Default is the current working directory.

enforcetabs foo/bar
extnames

Specify extensions for files to scan. By default, only .js, .jsx and .json files are included.

# Process .html and .css files:
enforcetabs -e .html .css

# Process .js, .jsx and .json files:
enforcetabs
encoding

Specify the encoding that is used for read and write operations. Default is utf8

enforcetabs --encoding latin1
no-gitignore

Don't parse .gitignore files.

enforcetabs --no-gitignore
1.1.3

5 years ago

1.1.2

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago