gulp-strip-line

0.0.1 • Public • Published

gulp-strip-line

Information

Packagegulp-strip-line
Description Strip line plugin for gulp.
Node Version >= 0.10

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.

Dependencies (2)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i gulp-strip-line

    Weekly Downloads

    179

    Version

    0.0.1

    License

    MIT

    Last publish

    Collaborators

    • guzart