Swap-Aggregator-Subgraph/node_modules/is-pull-stream
2022-07-03 07:27:35 +05:30
..
test added handler 2022-07-03 07:27:35 +05:30
.npmignore added handler 2022-07-03 07:27:35 +05:30
.travis.yml added handler 2022-07-03 07:27:35 +05:30
index.js added handler 2022-07-03 07:27:35 +05:30
LICENSE added handler 2022-07-03 07:27:35 +05:30
package.json added handler 2022-07-03 07:27:35 +05:30
README.md added handler 2022-07-03 07:27:35 +05:30

is-pull-stream

check what sort of pull-stream a thing is.

api

isSource (stream)

return true if stream is a source.

isSink (stream)

return true if stream is a sink.

isDuplex (stream)

return true if stream is a duplex steam.

through

a through stream is a sink that returns a source, so don't know if it's not a sink until you pass a source to it.

License

MIT