1.0.0 • Published 10 years ago

tobuffer-stream v1.0.0

Weekly downloads
2
License
MIT
Repository
github
Last release
10 years ago

tobuffer-stream

Stream to convert typed arrays and ArrayBuffers to Buffer objects

Usage:

var toBufferStream = require('tobuffer-stream');

somewhere.pipe(toBufferStream)

Typed arrays are converted with typedarray-to-buffer, avoiding copying.

Useful for use with browserify, where browsers may emit data using (unaugmented) Uint8Array (etc.), but the augmented Buffer object type is desired. See also workerstream, websocket-stream.

License

MIT