Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

merge-stream

Package Overview
Dependencies
Maintainers
3
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

merge-stream - npm Package Compare versions

Comparing version 1.0.1 to 2.0.0

2

index.js
'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
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc