ccc-tnt-psd2ui/ccc-tnt-psd2ui-v3.4.+/node_modules/simple-concat
2023-07-20 19:00:23 +08:00
..
test 两个版本的插件 2023-07-20 19:00:23 +08:00
.travis.yml 两个版本的插件 2023-07-20 19:00:23 +08:00
index.js 两个版本的插件 2023-07-20 19:00:23 +08:00
LICENSE 两个版本的插件 2023-07-20 19:00:23 +08:00
package.json 两个版本的插件 2023-07-20 19:00:23 +08:00
README.md 两个版本的插件 2023-07-20 19:00:23 +08:00

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.