Comparing version 1.1.0 to 1.1.1
@@ -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 @@ |
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
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
3537
25