Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

typed-concat-stream

0.0.1 • Public • Published

typed-concat-stream

like concat-stream, but for collecting input into a single Uint8Array.

 
var fs = require('fs')
  , concat = require('typed-concat-stream')
 
fs.createReadStream('/usr/share/dict/words')
  .pipe(concat())
  .on('data', function(typed_data) {
    // typed_data contains all of the data from 
    // /usr/share/dict/words
  })
 

api

stream = concat([optional uint8array out])

creates a concat-stream. does not write into output until the source stream emits end (so it might be slow!).

if out is provided, it'll use that variable to write into instead of creating a new typed array instance.

license

MIT

Keywords

none

install

npm i typed-concat-stream

Downloadsweekly downloads

0

version

0.0.1

license

none

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar