Package Exports
- binary-stream
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (binary-stream) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
binary-stream
A stream of binary values separated by a fixed length header, containing the chunk size. So you can stream a list of binary values.
See node-binary for details.
serialize
var binaryStream= require('binary-stream'),
bin= binaryStream.serialize();
bin.pipe(process.stdout);
bin.write(new Buffer('andrea','utf8'));
bin.write(new Buffer(Array(100).join('andrea'),'utf8'));
bin.write(new Buffer('elena','utf8'));
bin.end();deserialize
var binaryStream= require('binary-stream');
process.stdin.pipe(binaryStream.deserialize())
.on('data',function (data)
{
console.log(data.toString('utf8'));
});