Skip to main content
The Deno 2 Release Candidate is here
Learn more

read JSR

Read all text from stdin.

import read from "jsr:@korkje/read";

const input = await read();

Or read chunks individually.

import { readChunks } from "jsr:@korkje/read";

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