An open API service indexing awesome lists of open source software.

https://github.com/simov/bulk-stream

A stream that emits multiple other streams and chunks one after another
https://github.com/simov/bulk-stream

Last synced: about 1 year ago
JSON representation

A stream that emits multiple other streams and chunks one after another

Awesome Lists containing this project

README

          

# bulk-stream

A [combined-stream][combined-stream] like module using Streams2:

```js
var BulkStream = require('bulk-stream')

var bs = new BulkStream()
bs.append('wqw')
bs.append('\r\n')
bs.append(fs.createReadStream('cat.png'))
bs.append('\r\n')
bs.append(Buffer('poop'))
```

You can access the appended items through:

```js
// array containing all appended items (including streams)
bs._items
```

[combined-stream]: https://github.com/felixge/node-combined-stream