streamsink

WebJar for streamsink

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

streamsink
Last Version

Last Version

1.2.0
Release Date

Release Date

Type

Type

jar
Description

Description

streamsink
WebJar for streamsink
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/andrewrk/node-streamsink

Download streamsink

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/streamsink/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>streamsink</artifactId>
    <version>1.2.0</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/streamsink/
implementation 'org.webjars.npm:streamsink:1.2.0'
// https://jarcasting.com/artifacts/org.webjars.npm/streamsink/
implementation ("org.webjars.npm:streamsink:1.2.0")
'org.webjars.npm:streamsink:jar:1.2.0'
<dependency org="org.webjars.npm" name="streamsink" rev="1.2.0">
  <artifact name="streamsink" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='streamsink', version='1.2.0')
)
libraryDependencies += "org.webjars.npm" % "streamsink" % "1.2.0"
[org.webjars.npm/streamsink "1.2.0"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

node-streamsink

Pipe a stream to a StreamSink, and then you can create a ReadableStream, String, or Buffer from the StreamSink.

Usage

var StreamSink = require('streamsink');

var sink = new StreamSink();

fs.createReadStream("foo.txt").pipe(sink);
sink.on('finish', function() {
  // sink has now buffered foo.txt
  sink.createReadStream().pipe(someDestination);

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

  // or use toBuffer()
  sink.toBuffer();
});

// you can also create instances from a list of buffers
var sink = StreamSink.fromBufferList([new Buffer("aoeu"), new Buffer("foo")]);

Versions

Version
1.2.0