An open API service indexing awesome lists of open source software.

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)

Awesome Lists containing this project

README

          

# read [![JSR](https://jsr.io/badges/@korkje/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()) {
// ...
}
```