https://github.com/stsysd/dore
https://github.com/stsysd/dore
deno typescript
Last synced: 11 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/stsysd/dore
- Owner: stsysd
- License: mit
- Created: 2021-12-26T17:09:22.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-03-17T15:44:19.000Z (over 4 years ago)
- Last Synced: 2026-06-19T16:10:32.811Z (12 days ago)
- Topics: deno, typescript
- Language: TypeScript
- Homepage: https://deno.land/x/dore
- Size: 68.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# dore
dore is a command-line interactive selector like
[peco](https://github.com/peco/peco) and [fzf](https://github.com/junegunn/fzf)
written by [deno](https://deno.land/).
## Installation
```console
deno install --allow-read --allow-write=/dev/tty --unstable -n dore https://deno.land/x/dore/main.ts
```
## Usage
dore is a interactive selector, read the source list from STDIN or a file, and
write the selected item to STDOUT.
```console
# from STDIN
$ find * -type f | dore > selected
# from file
$ dore src.txt > selected
```
## As library
dore can be used as library.
```typescript
import { select } from "https://deno.land/x/dore/mod.ts";
const selected = await select(["foo", "bar", "baz"]);
console.log("SELECTED:", selected);
```