gulp-tabify

0.0.2 • Public • Published

gulp-tabify

Build Status David

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

Before

After

After


licence

Package Sidebar

Install

npm i gulp-tabify

Weekly Downloads

280

Version

0.0.2

License

MIT

Last publish

Collaborators

  • z2oh