is-pull-stream

0.0.0 • Public • Published

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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.0
    4,002
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.0
    4,002

Package Sidebar

Install

npm i is-pull-stream

Weekly Downloads

3,597

Version

0.0.0

License

MIT

Last publish

Collaborators

  • dominictarr