Icard/angular-clarity-master(work.../node_modules/simple-concat
realSnehal 336a6a07d0 frnt 2024-07-16 20:53:22 +05:30
..
test frnt 2024-07-16 20:53:22 +05:30
.travis.yml frnt 2024-07-16 20:53:22 +05:30
LICENSE frnt 2024-07-16 20:53:22 +05:30
README.md frnt 2024-07-16 20:53:22 +05:30
index.js frnt 2024-07-16 20:53:22 +05:30
package.json frnt 2024-07-16 20:53:22 +05:30

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.