stream.js 219 B

12345678910111213
  1. var binary = require('binary');
  2. var ws = binary()
  3. .word32lu('x')
  4. .word16bs('y')
  5. .word16bu('z')
  6. .tap(function (vars) {
  7. console.dir(vars);
  8. })
  9. ;
  10. process.stdin.pipe(ws);
  11. process.stdin.resume();