gradle-build-action/node_modules/binary/example/stream.js
2019-09-21 16:11:55 +02:00

12 lines
219 B
JavaScript

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();