gulp-foreach
Send each file in a stream down its own stream
Install
$ npm install --save-dev gulp-foreach
Usage
var gulp = ;var foreach = ; gulp;
API
The foreach method takes one argument, a function. This function is called once for each file piped to foreach
and is passed a stream as its first argument and the file as its second argument. The stream contains only one file.
You can optionally return a stream from the foreach
function. All the streams returned from foreach
will be combined and their contents will be emited by foreach
.
License
MIT © Marius Gundersen