New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

gulp-modify

Package Overview
Dependencies
Maintainers
2
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gulp-modify

Modify the content of vinyl files with custom callback function.

0.1.1
latest
Source
npm
Version published
Weekly downloads
2.8K
-24.51%
Maintainers
2
Weekly downloads
 
Created
Source

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

Keywords

gulp

FAQs

Package last updated on 30 Apr 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts