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