Skip to main content
The Deno 2 Release Candidate is 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()) {
    // ...
}