https://github.com/korkje/read
Read from stdin (Deno)
https://github.com/korkje/read
deno stdin typescript
Last synced: about 2 months ago
JSON representation
Read from stdin (Deno)
- Host: GitHub
- URL: https://github.com/korkje/read
- Owner: korkje
- License: mit
- Created: 2023-12-11T16:06:17.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-06-04T10:56:35.000Z (about 2 years ago)
- Last Synced: 2025-03-28T17:24:39.943Z (about 1 year ago)
- Topics: deno, stdin, typescript
- Language: TypeScript
- Homepage:
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: license.md
Awesome Lists containing this project
README
# read [](https://jsr.io/@korkje/read)
Read all text from stdin.
```ts
import read from "jsr:@korkje/read";
const input = await read();
```
Or read chunks individually.
```ts
import { readChunks } from "jsr:@korkje/read";
for await (const chunk of readChunks()) {
// ...
}
```