Skip to content

Modify the content of vinyl files with custom callback function.

License

Notifications You must be signed in to change notification settings

efacilitation/gulp-modify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Modify the content of vinyl files with custom callback function.

Resources

License

Stars

Watchers

Forks

Packages

No packages published