File: index.md

package info (click to toggle)
node-rollup-plugin-node-polyfills 0.2.1%2Bdfsg%2B~0.11.0-1%2Bdeb12u1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 4,748 kB
  • sloc: javascript: 33,166; makefile: 5
file content (46 lines) | stat: -rw-r--r-- 877 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# Throughs

A Through is a stream that both reads and is read by
another stream.

Through streams are optional.

Put through streams in-between [sources](../sources/index.md) and [sinks](../sinks/index.md),
like this:

```js
pull(source, through, sink)
```

Also, if you don't have the source/sink yet,
you can pipe multiple through streams together
to get one through stream!

```js
var throughABC = function () {
  return pull(
    throughA(),
    throughB(),
    throughC()
  )
}
```

Which can then be treated like a normal through stream!

```js
pull(source(), throughABC(), sink())
```

See also:
* [Sources](../sources/index.md)
* [Sinks](../sinks/index.md)

## [map](./map.md)
## [asyncMap](./async-map.md)
## [filter](./filter.md)
## [filterNot](./filter-not.md)
## [unique](./unique.md)
## [nonUnique](./non-unique.md)
## [take](./take.md)
## [flatten](./flatten.md)