lix-website/themes/lix/assets/bootstrap/node_modules/binary/example/stream.js

13 lines
219 B
JavaScript
Raw Permalink Normal View History

2024-04-27 03:39:10 +00:00
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();