lead

WebJar for lead

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

lead
Last Version

Last Version

1.0.0
Release Date

Release Date

Type

Type

jar
Description

Description

lead
WebJar for lead
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/gulpjs/lead

Download lead

How to add to project

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

Dependencies

compile (1)

Group / Artifact Type Version
org.webjars.npm : flush-write-stream jar [1.0.2,2)

Project Modules

There are no modules declared in this project.

lead

NPM version Downloads Build Status Coveralls Status

Sink your streams.

Usage

var from = require('from2');
var through = require('through2');
var sink = require('lead');

// Might be used as a Transform or Writeable
var maybeThrough = through(function (chunk, enc, cb) {
  // processing
  cb(null, chunk);
});

from(['hello', 'world'])
  // Sink it to behave like a Writeable
  .pipe(sink(maybeThrough));

API

sink(stream)

Takes a stream to sink and returns the same stream. Sets up event listeners to infer if the stream is being used as a Transform or Writeable stream and sinks it on nextTick if necessary. If the stream is being used as a Transform stream but becomes unpiped, it will be sunk. Respects pipe, on('data') and on('readable') handlers.

License

MIT

org.webjars.npm

gulp

A toolkit to automate & enhance your workflow

Versions

Version
1.0.0