implementation is ready

This commit is contained in:
2016-08-16 03:37:40 +02:00
parent 17ccc27244
commit e2b90b7d30
18 changed files with 290 additions and 7 deletions

15
ts/nodehash.helpers.ts Normal file
View File

@ -0,0 +1,15 @@
import * as plugins from "./nodehash.plugins";
export let hashStreamPipeStop = (resolveFuntion) => {
let forEach = (chunk:Buffer,enc,cb) => {
resolveFuntion(chunk.toString("utf8"));
cb(null,chunk);
};
let atEnd = (cb) => {
cb();
};
return plugins.through2(forEach,atEnd);
};