stream-array

WebJar for stream-array

Лицензия

Лицензия

MIT
Группа

Группа

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

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

stream-array
Последняя версия

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

1.1.2
Дата

Дата

Тип

Тип

jar
Описание

Описание

stream-array
WebJar for stream-array
Ссылка на сайт

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

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

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

https://github.com/mimetnet/node-stream-array

Скачать stream-array

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

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

Зависимости

compile (1)

Идентификатор библиотеки Тип Версия
org.webjars.npm : readable-stream jar [2.1.0,2.2)

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

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

stream-array

Pipe an Array through Node.js Streams. This is rather useful for testing other streams.

npm version build status dependencies devDependencies Inch CI

Usage

var streamify = require('stream-array'),
    os = require('os');

streamify(['1', '2', '3', os.EOL]).pipe(process.stdout);

API

streamify(Array)

The result of require is a 'function()' that when invoked, will return a Readable Stream.

var streamify = require('stream-array');

The source array can contain any type as it is assumed that the receiving stream can handle it. Each element in the array will be pushed into the piped stream, without modifying the source array.

var readable = streamify(['Hello', new Buffer('World')]);

This Stream will push each element of the source array into the piped array.

readable(['1', '2', '3', os.EOL]).pipe(process.stdout);
123\n

Install

npm install stream-array

License

MIT License

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

Версия
1.1.2