blob: 5f945be7ca9224d6cc732e5219e0b11ff0c6c68a (
plain) (
blame)
1
2
3
4
5
6
7
|
var count = 5;
for await (let chunk of Bun.stdin.stream()) {
const str = new Buffer(chunk).toString();
console.error("how many?", count, chunk.byteLength);
count -= str.split("\n").length;
console.log(str);
}
|