Skip to content

t1st3/gulp-rmlines

Repository files navigation

gulp-rmlines Build Status Travis codecov

A line-remover plugin for gulp

Thin wrapper around rmlines to make it a gulp plugin.

Also available as a Grunt plugin.

Install

$ npm install --save gulp-rmlines

Usage

const gulp = require('gulp');
const muxml = require('gulp-rmlines');

gulp.task('default', () => {
    return gulp.src('src/example.txt')
        .pipe(rmlines([4, 61, 729])
        .pipe(gulp.dest('dist'));
});

API

Supports streaming mode.

gulpRmlines(lines, [options])

lines

Type: integer|array

The number(s) of the line(s) that must be removed.

options

Type: object
See rmlines's options, which are all supported.

Related

License

MIT © t1st3