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

https://github.com/stsysd/dore


https://github.com/stsysd/dore

deno typescript

Last synced: 11 days ago
JSON representation

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);
```