Sha256: cf81b331c1ea0bb79853ff44c4a8e6e3584ed618d4b14ff8ab3c448d12fb3267

Contents?: true

Size: 738 Bytes

Versions: 11

Compression:

Stored size: 738 Bytes

Contents

# concat-stream

    npm install concat-stream

then

    var concat = require('concat-stream')
    var fs = require('fs')
    
    var read = fs.createReadStream('readme.md')
    var write = concat(function(err, data) {})
    
    read.pipe(write)
    
works with arrays too!

    var write = concat(function(err, data) {})
    write.write([1,2,3])
    write.write([4,5,6])
    write.end()
    // data will be [1,2,3,4,5,6] in the above callback

works with buffers too! can't believe the deals!

    var write = concat(function(err, data) {})
    write.write(new Buffer('hello '))
    write.write(new Buffer('world'))
    write.end()
    // data will be a buffer that toString()s to 'hello world' in the above callback
    
MIT LICENSE

Version data entries

11 entries across 6 versions & 3 rubygems

Version Path
snowball-0.1.22 node_modules/browserify/node_modules/http-browserify/node_modules/concat-stream/readme.md
sprockets-browserify-0.2.0 node_modules/browserify/node_modules/concat-stream/readme.md
sprockets-browserify-0.2.0 node_modules/browserify/node_modules/browser-resolve/node_modules/http-browserify/node_modules/concat-stream/readme.md
ruby-wisp-source-0.8.0 vendor/node_modules/browserify/node_modules/browser-resolve/node_modules/http-browserify/node_modules/concat-stream/readme.md
ruby-wisp-source-0.8.0 vendor/node_modules/browserify/node_modules/concat-stream/readme.md
ruby-wisp-source-0.7.0 vendor/node_modules/browserify/node_modules/browser-resolve/node_modules/http-browserify/node_modules/concat-stream/readme.md
ruby-wisp-source-0.7.0 vendor/node_modules/browserify/node_modules/concat-stream/readme.md
sprockets-browserify-0.1.2 node_modules/browserify/node_modules/http-browserify/node_modules/concat-stream/readme.md
sprockets-browserify-0.1.2 node_modules/module-deps/node_modules/browser-resolve/node_modules/http-browserify/node_modules/concat-stream/readme.md
sprockets-browserify-0.1.0 node_modules/browserify/node_modules/http-browserify/node_modules/concat-stream/readme.md
sprockets-browserify-0.1.0 node_modules/module-deps/node_modules/browser-resolve/node_modules/http-browserify/node_modules/concat-stream/readme.md