-
|
Beta Was this translation helpful? Give feedback.
Answered by
ayame113
Sep 12, 2022
Replies: 2 comments 5 replies
-
I'm not sure if I understand the problem correctly, but what about something like this? const reader = Deno.stdin.readable.pipeThrough(new TextDecoderStream());
for await (const chunk of reader) {
console.log(Number(chunk));
} > deno run readInt.ts
123
123
456
456 |
Beta Was this translation helpful? Give feedback.
4 replies
Answer selected by
lifubang
-
@ayame113 Could I ask one more question? Why |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm not sure if I understand the problem correctly, but what about something like this?
> deno run readInt.ts 123 123 456 456