New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

stream-promise

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

stream-promise

Promise that shares Node.js Stream interface

2.0.0
Source
npm
Version published
Weekly downloads
718K
-16.96%
Maintainers
1
Weekly downloads
 
Created
Source

*nix build status Windows build status Tests coverage Transpilation status

stream-promise

Promise that's a also a Node.js Stream

Useful when we want to serve both a Stream instance and a Promise instance as one object

Installation

npm install stream-promise

Usage

const StreamPromise = require("stream-promise");

const streamPromise = new StreamPromise((resolve, reject) => {
	...
});

streamPromise.addListener("someevent", event => {
	...
});
streamPromise.emit("someevent", { ... });

stream.pipe(otherStream);

Tests

npm test

Keywords

promise

FAQs

Package last updated on 15 Jan 2019

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