0.1.8 • Published 1 year ago

detabbify v0.1.8

Weekly downloads
3
License
MIT
Repository
github
Last release
1 year ago

detabbify

NPM Version test license: MIT downloads

Replace tabs with spaces when running files through browserify.

Options

spaces

Configure how many spaces each \t character will be replaced with. Defaults to 4 spaces.

Usage

CLI

// Recommended to run globally
$ browserify ./file-with-spaces.js -g detabbify ./output.js

// Specify number of spaces
$ browserify ./file-with-spaces.js -g [ detabbify --spaces 4 ] ./output.js

API

var build = browserify("./file-with-spaces.js");

// Recommended to run globally
build.transform(detabbify, { global : true });

// Specify number of spaces
build.transform(detabbify, { global : true, spaces : 4 });
0.1.8

1 year ago

0.1.7

3 years ago

0.1.6

4 years ago

0.1.5

5 years ago

0.1.4

5 years ago

0.1.1

8 years ago

0.1.0

8 years ago