Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/vslinko/deno-readline
- Owner: vslinko
- Created: 2020-05-14T16:38:48.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-01-13T15:38:34.000Z (almost 4 years ago)
- Last Synced: 2024-10-01T00:23:33.465Z (about 1 month ago)
- Language: TypeScript
- Homepage:
- Size: 3.91 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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();
```