simple-concat (1.0.1)

Published 2026-02-24 14:05:07 +00:00 by atheaadmin

Installation

registry=
npm install simple-concat@1.0.1
"simple-concat": "1.0.1"

About this package

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.

Dependencies

Development Dependencies

ID Version
standard *
tape ^5.0.1

Keywords

concat concat-stream concat stream
Details
npm
2026-02-24 14:05:07 +00:00
0
Feross Aboukhadijeh
MIT
latest
2.0 KiB
Assets (1)
Versions (1) View all
1.0.1 2026-02-24