gulp-modify
Modify the content of vinyl files with custom callback function.
Last updated 5 years ago by efacilitation .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install gulp-modify 
SYNC missed versions from official npm registry.

gulp-modify

Modify the content of vinyl files with custom callback function.

Install

npm install --save-dev gulp-modify

Example

var gulp = require('gulp');
var modify = require('gulp-modify');

gulp.task('default', function () {
	gulp.src('src/app.ext')
		.pipe(modify({
			fileModifier: function(file, contents) {
      				return 'modified';
    			}
		}))
		.pipe(gulp.dest('dist'));
});

API

modify(options)

options.fileModifier

Type: callback Default: false

Function which gets called with content of the vinyl file as first parameter.

License

MIT

Copyright (c) 2014 efa GmbH, Ferdinand Full

Current Tags

  • 0.1.1                                ...           latest (5 years ago)

6 Versions

  • 0.1.1                                ...           5 years ago
  • 0.1.0                                ...           5 years ago
  • 0.0.5                                ...           5 years ago
  • 0.0.3                                ...           6 years ago
  • 0.0.2                                ...           6 years ago
  • 0.0.1                                ...           6 years ago
Downloads
Today 0
This Week 5
This Month 6
Last Day 0
Last Week 1
Last Month 25
Dependencies (2)
Dev Dependencies (4)

Copyright 2014 - 2016 © taobao.org |