3.85 GB
70,867 files
Updated 17 days ago
Name
Size
test
package.json1.03 kB
xet
index.js392 Bytes
xet
README.md1.26 kB
xet
LICENSE1.08 kB
xet
.travis.yml37 Bytes
xet
README.md

simple-concat travis npm downloads javascript style guide

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

Contributors