merge-stream
Advanced tools
Comparing version
'use strict'; | ||
var PassThrough = require('readable-stream/passthrough') | ||
const { PassThrough } = require('stream'); | ||
@@ -5,0 +5,0 @@ module.exports = function (/*streams...*/) { |
{ | ||
"name": "merge-stream", | ||
"version": "1.0.1", | ||
"version": "2.0.0", | ||
"description": "Create a stream that emits events from multiple other streams", | ||
@@ -14,9 +14,7 @@ "files": [ | ||
"license": "MIT", | ||
"dependencies": { | ||
"readable-stream": "^2.0.1" | ||
}, | ||
"dependencies": {}, | ||
"devDependencies": { | ||
"from2": "^2.0.3", | ||
"istanbul": "^0.3.2" | ||
"istanbul": "^0.4.5" | ||
} | ||
} |
@@ -53,4 +53,27 @@ # merge-stream | ||
## Gulp example | ||
An example use case for **merge-stream** is to combine parts of a task in a project's **gulpfile.js** like this: | ||
```js | ||
const gulp = require('gulp'); | ||
const htmlValidator = require('gulp-w3c-html-validator'); | ||
const jsHint = require('gulp-jshint'); | ||
const mergeStream = require('merge-stream'); | ||
function lint() { | ||
return mergeStream( | ||
gulp.src('src/*.html') | ||
.pipe(htmlValidator()) | ||
.pipe(htmlValidator.reporter()), | ||
gulp.src('src/*.js') | ||
.pipe(jsHint()) | ||
.pipe(jsHint.reporter()) | ||
); | ||
} | ||
gulp.task('lint', lint); | ||
``` | ||
## License | ||
MIT |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
4306
14.01%0
-100%79
41.07%1
Infinity%- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed