Buckets:
simple-concat
Super-minimalist version of concat-stream. Less than 15 lines!
install
npm install simple-concat
usage
This example is longer than the implementation.
var s = new stream.PassThrough()
concat(s, function (err, buf) {
if (err) throw err
console.error(buf)
})
s.write('abc')
setTimeout(function () {
s.write('123')
}, 10)
setTimeout(function () {
s.write('456')
}, 20)
setTimeout(function () {
s.end('789')
}, 30)
license
MIT. Copyright (c) Feross Aboukhadijeh.
Xet Storage Details
- Size:
- 1.26 kB
- Xet hash:
- 9e8d3c582694c482432cf2a9167462e2b08a9d56fcc2068e4af52621a9f0ba40
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.