to-through

WebJar for to-through

Лицензия

Лицензия

MIT
Группа

Группа

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

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

to-through
Последняя версия

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

2.0.0
Дата

Дата

Тип

Тип

jar
Описание

Описание

to-through
WebJar for to-through
Ссылка на сайт

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

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

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

https://github.com/gulpjs/to-through

Скачать to-through

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

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

Зависимости

compile (1)

Идентификатор библиотеки Тип Версия
org.webjars.npm : through2 jar [2.0.3,3)

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

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

to-through

NPM version Downloads Build Status AppVeyor Build Status Coveralls Status Gitter chat

Wrap a ReadableStream in a TransformStream.

Usage

var from = require('from2');
var concat = require('concat-stream');
var toThrough = require('to-through');

var readable = from([' ', 'hello', ' ', 'world']);

// Can be used as a Readable or Transform
var maybeTransform = toThrough(readable);

from(['hi', ' ', 'there', ','])
  .pipe(maybeTransform)
  .pipe(concat(function(result) {
    // result.toString() === 'hi there, hello world'
  }));

API

toThrough(readableStream)

Takes a readableStream as the only argument and returns a through2 stream. If the returned stream is piped before nextTick, the wrapped readableStream will not flow until the upstream is flushed. If the stream is not piped before nextTick, it is ended and flushed (acting as a proper readable).

License

MIT

org.webjars.npm

gulp

A toolkit to automate & enhance your workflow

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

Версия
2.0.0