DenoDDeno
Powered by
pomdtrP
Denoβ€’3y agoβ€’
7 replies
pomdtr

How to read all text from stdin.

It uses to be simple with the
Deta.readAll
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
Use ReadableStream and toArrayBuffer instead
.

A specific example would be better.

Basically, I want

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


but working on windows
Deno banner
DenoJoin
Chat about Deno, a modern runtime for JavaScript and TypeScript.
20,934Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

Sync Child Stdin Read
jeff.hykinJjeff.hykin / help
3y ago
Synchronous read single line from Deno.stdin
Octal!OOctal! / help
4y ago