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

concat-stream-promise

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

concat-stream-promise

concat-stream but with promises

  • 0.1.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
8
decreased by-63.64%
Maintainers
1
Weekly downloads
 
Created
Source

concat-stream-promise

promise version of concat-stream.

usage

var concat = require('concat-stream-promise');
var foo = require('fs').createReadStream('foo');

foo.pipe(concat()).then(function(buffer) {
  console.log(buffer.toString('utf8'));
}).done();

concat() returns a promise that is also a Writable Stream. When the stream ends, the promise is resolved with a buffer.

'encoding' stuff

Don't write strings to it. It won't encode them; it'll just throw.

options

This space intentionally left blank.

No, seriously, there aren't any.

contributing

This is about as simple as a module can get, but there are some things missing:

  • Tests (I got started with vows)
  • Testing in non-0.10 Node
  • A better way of doing multiple inheritance between Promise and Writable: currently we have to use __proto__, so it won't work in the browser.

Keywords

FAQs

Package last updated on 22 Jul 2014

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

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