Skip to main content

dore

dore is a command-line interactive selector like peco and fzf written by deno.

Installation

deno install --allow-read --allow-write=/dev/tty --unstable -n dore https://raw.githubusercontent.com/stsysd/dore/v0.4.5/main.ts

Usage

dore is a interactive selector, read the source list from STDIN or a file, and write the selected item to STDOUT.

# from STDIN
$ find * -type f | dore > selected

# from file
$ dore src.txt > selected

As library

dore can be used as library.

import { select } from "https://raw.githubusercontent.com/stsysd/dore/v0.4.5/mod.ts";

const selected = await select(["foo", "bar", "baz"]);
console.log("SELECTED:", selected);