streamsink

WebJar for streamsink

Лицензия

Лицензия

MIT
Группа

Группа

org.webjars.npm
Идентификатор

Идентификатор

streamsink
Последняя версия

Последняя версия

1.2.0
Дата

Дата

Тип

Тип

jar
Описание

Описание

streamsink
WebJar for streamsink
Ссылка на сайт

Ссылка на сайт

http://webjars.org
Система контроля версий

Система контроля версий

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

Скачать streamsink

Как подключить последнюю версию

<!-- 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"]

Зависимости

Библиотека не имеет зависимостей. Это самодостаточное приложение, которое не зависит ни от каких других библиотек.

Модули Проекта

Данный проект не имеет модулей.

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")]);

Версии библиотеки

Версия
1.2.0