-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Description
Currently we can stream file and decoding it.
Is is possible to implement encoding stream?
I want to do this
var cryptoStream = crypto.createHash('sha1');
cryptoStream.on('end', function(){
console.log(cryptoStream.digest('hex'));
});
var bencStream = new benc.EncodeStream({prop: []});
bencStream.on('data', function(chunk){
cryptoStream.update(chunk);
});
bencStream.on('end', function(){
cryptoStream.update(null);
});
Metadata
Metadata
Assignees
Labels
No labels