to-through

WebJar for to-through

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

to-through
Last Version

Last Version

2.0.0
Release Date

Release Date

Type

Type

jar
Description

Description

to-through
WebJar for to-through
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

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

Download to-through

How to add to project

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

Dependencies

compile (1)

Group / Artifact Type Version
org.webjars.npm : through2 jar [2.0.3,3)

Project Modules

There are no modules declared in this project.

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

Versions

Version
2.0.0