https://github.com/t1st3/grunt-rmlines
A line-remover plugin for Grunt
https://github.com/t1st3/grunt-rmlines
grunt grunt-plugin javascript line remove stream
Last synced: over 1 year ago
JSON representation
A line-remover plugin for Grunt
- Host: GitHub
- URL: https://github.com/t1st3/grunt-rmlines
- Owner: t1st3
- License: mit
- Created: 2016-11-09T16:13:42.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2020-06-03T09:21:27.000Z (about 6 years ago)
- Last Synced: 2025-03-05T02:36:09.272Z (over 1 year ago)
- Topics: grunt, grunt-plugin, javascript, line, remove, stream
- Language: JavaScript
- Size: 69.3 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
README
# grunt-rmlines [](https://travis-ci.org/t1st3/grunt-rmlines) [](https://codecov.io/gh/t1st3/grunt-rmlines?branch=master)
> A line-remover plugin for [`Grunt`](http://gruntjs.com/)
Thin wrapper around [`rmlines`](https://github.com/t1st3/rmlines) to make it a Grunt plugin.
Also available as a [gulp plugin](https://github.com/t1st3/gulp-rmlines).
## Install
```
$ npm install --save grunt-rmlines
```
## Usage
```js
'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](https://github.com/t1st3/rmlines#options), which are all supported.
## Related
* [rmlines](https://github.com/t1st3/rmlines) | API for rmlines
* [rmlines-cli](https://github.com/t1st3/rmlines-cli) | CLI for rmlines
* [gulp-rmlines](https://github.com/t1st3/gulp-rmlines) | rmlines as a [`gulp`](http://gulpjs.com/) plugin
## License
MIT © [t1st3](https://t1st3.com)