gulp-tabify
v0.0.2
Published
Turn those spaces into tabs!
Downloads
1,712
Maintainers
Readme
gulp-tabify
Features
- Changes spaces to be tabs
- Number of spaces to change is configurable
Install
$ npm install --save-dev gulp-tabify
Usage
var gulp = require('gulp');
var tabify = require('gulp-tabify');
gulp.task('default', function () {
return gulp.src('./app/**.*.js')
.pipe(tabify(4, true))
.pipe(gulp.dest('./app'));
});
API
tabfiy(numSpaces, preserveAlignmentSpaces)
numSpaces
is the number of spaces to convert to a tab at the beginning of each line. The default is 4.
preserveAlignmentSpaces
is a boolean. When set to true, alignment spaces are preserved; false ignores them. Default is true. Example when set to true:
Before
After