Project: gulp-trimlines

gulp-trimlines is a gulp plugin to trim leading and/or trailing spaces (or any other pattern) per line. It is useful to clean up source code when your editor doesn't automatically trim lines on saves.

Installation

$ npm install gulp-trimlines --save-dev

Usage

var trimlines = require('gulp-trimlines');

gulp.task('trim-text', function() {
  return gulp.src('*.txt')
    .pipe(trimlines())
    .pipe(gulp.dest('./'));
});

License

MIT

Source

GitHub