blob: 35fc1dddd16e1ef6b7c653bc5fda59f97664d78e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
const decoder = new TextDecoder();
let text = ""
for await (const chunk of Deno.stdin.readable) {
text += decoder.decode(chunk);
}
for (const ob of text.split("\n")) {
if (!ob.length) continue
console.log(JSON.stringify(JSON.parse(ob), null, 4));
}
|