gulp-soften

0.0.1 • Public • Published

gulp-soften

A gulp task that converts hard tabs to spaces.

Usage

soften([size])

soften() takes a single parameter, size, which is the number of spaces to convert tabs into.

It returns a stream for use in a streaming system like gulp.js.

Example

// Gulpfile.js
var gulp = require('gulp')
  , soften = require('gulp-soften')
 
gulp.task('soften', function () {
  gulp.src('./**/*.js')
      .pipe(soften(2))
      .pipe(gulp.dest('./'))
})

Readme

Keywords

none

Package Sidebar

Install

npm i gulp-soften

Weekly Downloads

190

Version

0.0.1

License

BSD-2-Clause

Last publish

Collaborators

  • clmn