Buckets:
3.85 GB
70,867 files
Updated 17 days ago
Ctrl+K
| Name | Size | Uploaded | Xet hash |
|---|---|---|---|
| test | 1 items | ||
| .travis.yml | 37 Bytes xet | 408ce033 | |
| LICENSE | 1.08 kB xet | 815bb74a | |
| README.md | 1.26 kB xet | 9e8d3c58 | |
| index.js | 392 Bytes xet | 47f2f66e | |
| package.json | 1.03 kB xet | 6453bb10 |
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.
- Total size
- 3.85 GB
- Files
- 70,867
- Last updated
- Nov 3
- Pre-warmed CDN
- US EU US EU