0.0.2 • Published 7 years ago

gulp-tabify v0.0.2

Weekly downloads
100
License
MIT
Repository
github
Last release
7 years ago

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