Skip to content

Latest commit

 

History

History
62 lines (42 loc) · 1.34 KB

readme.md

File metadata and controls

62 lines (42 loc) · 1.34 KB

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