🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Sign inDemoInstall
Socket

gulp-modify

Package Overview
Dependencies
Maintainers
3
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.0.2
Source
npm
Version published
Weekly downloads
1.9K
20%
Maintainers
3
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(function(content) {
      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 13 Apr 2014

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