世祺 0423d5801c Initial commit (by Create-Cloudflare CLI) il y a 1 an
..
test 0423d5801c Initial commit (by Create-Cloudflare CLI) il y a 1 an
.travis.yml 0423d5801c Initial commit (by Create-Cloudflare CLI) il y a 1 an
LICENSE 0423d5801c Initial commit (by Create-Cloudflare CLI) il y a 1 an
README.md 0423d5801c Initial commit (by Create-Cloudflare CLI) il y a 1 an
index.js 0423d5801c Initial commit (by Create-Cloudflare CLI) il y a 1 an
package.json 0423d5801c Initial commit (by Create-Cloudflare CLI) il y a 1 an

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.