Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/vslinko/deno-readline

Readline implementation for Deno
https://github.com/vslinko/deno-readline

Last synced: 22 days ago
JSON representation

Readline implementation for Deno

Awesome Lists containing this project

README

        

# deno-readline

Readline implementation for https://deno.land/.

# Usage

```ts
import { readline } from "https://deno.land/x/[email protected]/mod.ts";

const f = await Deno.open("./example.ts");
for await (const line of readline(f)) {
console.log(`line: ${new TextDecoder().decode(line)}`);
}
f.close();
```