Skip to content

t1st3/grunt-rmlines

Repository files navigation

grunt-rmlines Build Status Travis codecov

A line-remover plugin for Grunt

Thin wrapper around rmlines to make it a Grunt plugin.

Also available as a gulp plugin.

Install

$ npm install --save grunt-rmlines

Usage

'use strict';
module.exports = function (grunt) {
	grunt.initConfig({
		rmlines: {
			dist: {
				files: [{
					expand: false,
					cwd: 'fixtures/',
					src: '*initial.txt',
					dest: 'tmp/'
				}],
				lines: [2, 4],
				options: {
					maxLength: 30
				}
			}
		}
	});

	grunt.loadNpmTasks('grunt-rmlines');

	grunt.registerTask('default', [
		'rmlines'
	]);
};

Options

See rmlines's options, which are all supported.

Related

License

MIT © t1st3