0.0.1 • Published 10 years ago

gulp-strip-line v0.0.1

Weekly downloads
117
License
MIT
Repository
github
Last release
10 years ago

gulp-strip-line

Information

Usage

var gulp = require('gulp');
var stripLine  = require('gulp-strip-line');

gulp.task('default', function () {
  return gulp
    .src('app/*.js')
    .pipe(stripLine([/^\/\*\s*jshint/, 'use strict']))
    .pipe(gulp.dest('dist'));
});

Removes the lines that match an expression or a given array of expressions.

String Expression

If the expression is a string it will remove lines that contain the given string.

RegExp Expression

If the expression is a regular expression it will remove the lines that match the given expression.