15270821319 4e5c5d37f9 初步设计数据库,注册登录 10 mesi fa
..
test 4e5c5d37f9 初步设计数据库,注册登录 10 mesi fa
.travis.yml 4e5c5d37f9 初步设计数据库,注册登录 10 mesi fa
LICENSE 4e5c5d37f9 初步设计数据库,注册登录 10 mesi fa
README.md 4e5c5d37f9 初步设计数据库,注册登录 10 mesi fa
index.js 4e5c5d37f9 初步设计数据库,注册登录 10 mesi fa
package.json 4e5c5d37f9 初步设计数据库,注册登录 10 mesi fa

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.