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

streamsink

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

streamsink - npm Package Compare versions

Comparing version 1.1.0 to 1.1.1

4

index.js

@@ -31,4 +31,4 @@ var stream = require('stream');

StreamSink.prototype.toString = function(arg) {
return this.buffer.map(function(buf) { return buf.toString(arg); }).join('');
StreamSink.prototype.toString = function(encoding, start, end) {
return this.toBuffer().toString(encoding, start, end);
};

@@ -35,0 +35,0 @@

{
"name": "streamsink",
"version": "1.1.0",
"version": "1.1.1",
"description": "pipe to a buffer, then create readable streams from it",

@@ -5,0 +5,0 @@ "main": "index.js",

# node-streamsink
See also [bl](https://github.com/rvagg/bl).
Pipe a stream to a `StreamSink`, and then you can create a `ReadableStream`,
`String`, or `Buffer` from the `StreamSink`.

@@ -17,3 +18,3 @@ ## Usage

// or use toString([encoding])
// or use toString([encoding], [start], [end])
console.log(sink.toString('utf8'));

@@ -20,0 +21,0 @@

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