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
- Host: GitHub
- URL: https://github.com/simov/bulk-stream
- Owner: simov
- License: mit
- Created: 2015-09-27T10:32:20.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2015-12-02T09:38:46.000Z (over 10 years ago)
- Last Synced: 2025-04-21T01:19:47.681Z (over 1 year ago)
- Language: JavaScript
- Size: 36.1 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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