pomdtrP
Denoβ€’3y agoβ€’
7 replies
pomdtr

How to read all text from stdin.

It uses to be simple with the Deta.readAll function.

Now it is deprecated, link to https://deno.land/std/streams/read_all.ts?s=readAll (which is also deprecated).

The deprecation message says: Use ReadableStream and toArrayBuffer instead.

A specific example would be better.

Basically, I want

const text = await Deno.readTextFile("/dev/stdin");


but working on windows
Was this page helpful?