it-pipe

  • Version 3.0.1
  • Published
  • 38.9 kB
  • 3 dependencies
  • Apache-2.0 OR MIT license

Install

npm i it-pipe
yarn add it-pipe
pnpm add it-pipe

Overview

Utility to "pipe" async iterables together

Index

Functions

function pipe

pipe: {
<A extends unknown>(source: A): SingleItemPipeOutput<A>;
<A extends unknown, B extends unknown>(source: A, sink: B): PipeOutput<B>;
<A extends unknown, B extends unknown, C extends unknown>(
source: A,
transform1: B,
sink: C
): PipeOutput<C>;
<A extends unknown, B extends unknown, C extends unknown, D extends unknown>(
source: A,
transform1: B,
transform2: C,
sink: D
): PipeOutput<D>;
<
A extends unknown,
B extends unknown,
C extends unknown,
D extends unknown,
E extends unknown
>(
source: A,
transform1: B,
transform2: C,
transform3: D,
sink: E
): PipeOutput<E>;
<
A extends unknown,
B extends unknown,
C extends unknown,
D extends unknown,
E extends unknown,
F extends unknown
>(
source: A,
transform1: B,
transform2: C,
transform3: D,
transform4: E,
sink: F
): PipeOutput<F>;
<
A extends unknown,
B extends unknown,
C extends unknown,
D extends unknown,
E extends unknown,
F extends unknown,
G extends unknown
>(
source: A,
transform1: B,
transform2: C,
transform3: D,
transform4: E,
transform5: F,
sink: G
): PipeOutput<G>;
<
A extends unknown,
B extends unknown,
C extends unknown,
D extends unknown,
E extends unknown,
F extends unknown,
G extends unknown,
H extends unknown
>(
source: A,
transform1: B,
transform2: C,
transform3: D,
transform4: E,
transform5: F,
transform6: G,
sink: H
): PipeOutput<H>;
<
A extends unknown,
B extends unknown,
C extends unknown,
D extends unknown,
E extends unknown,
F extends unknown,
G extends unknown,
H extends unknown,
I extends unknown
>(
source: A,
transform1: B,
transform2: C,
transform3: D,
transform4: E,
transform5: F,
transform6: G,
transform7: H,
sink: I
): PipeOutput<I>;
<
A extends unknown,
B extends unknown,
C extends unknown,
D extends unknown,
E extends unknown,
F extends unknown,
G extends unknown,
H extends unknown,
I extends unknown,
J extends unknown
>(
source: A,
transform1: B,
transform2: C,
transform3: D,
transform4: E,
transform5: F,
transform6: G,
transform7: H,
transform8: I,
sink: J
): PipeOutput<J>;
<
A extends unknown,
B extends unknown,
C extends unknown,
D extends unknown,
E extends unknown,
F extends unknown,
G extends unknown,
H extends unknown,
I extends unknown,
J extends unknown,
K extends unknown
>(
source: A,
transform1: B,
transform2: C,
transform3: D,
transform4: E,
transform5: F,
transform6: G,
transform7: H,
transform8: I,
transform9: J,
sink: K
): PipeOutput<K>;
<
A extends unknown,
B extends unknown,
C extends unknown,
D extends unknown,
E extends unknown,
F extends unknown,
G extends unknown,
H extends unknown,
I extends unknown,
J extends unknown,
K extends unknown,
L extends unknown
>(
source: A,
transform1: B,
transform2: C,
transform3: D,
transform4: E,
transform5: F,
transform6: G,
transform7: H,
transform8: I,
transform9: J,
transform10: K,
sink: L
): PipeOutput<L>;
};

    function rawPipe

    rawPipe: (...fns: any) => any;

      Package Files (1)

      Dependencies (3)

      Dev Dependencies (7)

      Peer Dependencies (0)

      No peer dependencies.

      Badge

      To add a badge like this onejsDocs.io badgeto your package's README, use the codes available below.

      You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/it-pipe.

      • Markdown
        [![jsDocs.io](https://img.shields.io/badge/jsDocs.io-reference-blue)](https://www.jsdocs.io/package/it-pipe)
      • HTML
        <a href="https://www.jsdocs.io/package/it-pipe"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>