git ssb

2+

cel / scuttlebot.io



Tree: 9159ef892a956e00b0da209aa12be5cec26540ed

Files: 9159ef892a956e00b0da209aa12be5cec26540ed / tmpl / apis / pull-stream / pull-stream-to-stream.md

424 bytesRaw

pull-stream-to-stream

turn a pull-stream into a regular node stream.

example

var toStream = require('pull-stream-to-stream')

//if the pull-stream is duplex (an object with two streams: {source, sink})

stream = toStream(pullDuplex)

//if the stream is a sink ("writable")
stream = toStream.sink(pullSink)

//if the stream is a source ("readable")

stream = toStream.source(pullSource)

License

MIT

Built with git-ssb-web