setup-zig/node_modules/simple-concat
Renée Kooi e834313fcd
Download tarball from zig download index (#2)
* Download tarball from zig download index

* try this

* Remove promisify

* Revert "try this"

This reverts commit e6ecfb58ed2819755bc79af1349e4fd0db59e3b5.
2019-10-07 10:17:11 +02:00
..
test Download tarball from zig download index (#2) 2019-10-07 10:17:11 +02:00
.travis.yml Download tarball from zig download index (#2) 2019-10-07 10:17:11 +02:00
index.js Download tarball from zig download index (#2) 2019-10-07 10:17:11 +02:00
LICENSE Download tarball from zig download index (#2) 2019-10-07 10:17:11 +02:00
package.json Download tarball from zig download index (#2) 2019-10-07 10:17:11 +02:00
README.md Download tarball from zig download index (#2) 2019-10-07 10:17:11 +02:00

simple-concat travis npm downloads

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.