merge-stream
Advanced tools
Comparing version 1.0.1 to 2.0.0
'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 |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4306
0
79
1
- Removedreadable-stream@^2.0.1
- Removedcore-util-is@1.0.3(transitive)
- Removedinherits@2.0.4(transitive)
- Removedisarray@1.0.0(transitive)
- Removedprocess-nextick-args@2.0.1(transitive)
- Removedreadable-stream@2.3.8(transitive)
- Removedsafe-buffer@5.1.2(transitive)
- Removedstring_decoder@1.1.1(transitive)
- Removedutil-deprecate@1.0.2(transitive)