x/read
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()) { // ... }