Skip to main content
Deno 2 is finally here 🎉️
Learn more

read

Read all text from stdin.

import read from "https://deno.land/x/read/mod.ts";

const input = await read();

Or read chunks individually.

import { readChunks } from "https://deno.land/x/read/mod.ts";

for await (const chunk of readChunks()) {
    // ...
}