Skip to content

through stream to convert typed arrays and ArrayBuffers to Buffer

License

Notifications You must be signed in to change notification settings

deathcap/tobuffer-stream

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

through stream to convert typed arrays and ArrayBuffers to Buffer

Resources

License

Stars

Watchers

Forks

Packages

No packages published