abe

0.0.0 • Public • Published

abe

Create read/write streams for decoding/encoding text data from ArrayBuffer arrays.

var ArrayReadStream = require('abe').ArrayReadStream;
 
// lets say this is some stream which emits data as array buffers
var array_buff_stream;
 
// by piping the array buffer stream into our decode stream
// we will get the decoded data
var read_stream = array_buff_stream.pipe(new ArrayReadStream('utf-8'));
 
read_stream.on('data', function(chunk) {
    // chunk is now utf-8 data
});

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.0
    22
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.0
    22

Package Sidebar

Install

npm i abe

Weekly Downloads

22

Version

0.0.0

License

MIT

Last publish

Collaborators

  • defunctzombie