stream.js 219 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 8 9 10 11 12 var binary = require('binary'); var ws = binary() .word32lu('x') .word16bs('y') .word16bu('z') .tap(function (vars) { console.dir(vars); }) ; process.stdin.pipe(ws); process.stdin.resume();