abe
Expose ArrayBuffers as read/write text streams
Last updated 8 years ago by shtylman .
MIT · Repository · Original npm · Tarball · package.json
$ cnpm install abe 
SYNC missed versions from official npm registry.

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
});

Current Tags

  • 0.0.0                                ...           latest (8 years ago)

1 Versions

  • 0.0.0                                ...           8 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (2)
Dev Dependencies (0)
None
Dependents (4)

Copyright 2014 - 2016 © taobao.org |