JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 3
  • Score
    100M100P100Q60905F
  • License MIT

A curses-based terminal ui wrapper for your "find"-like utility

Package Exports

  • @adamhamlin/frap
  • @adamhamlin/frap/src/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@adamhamlin/frap) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

frap

A terminal UI wrapper for your "find"-like utility. Quickly perform basic operations on the results of your find command, like copying paths, file/directory names, or file contents.

Frap Demo

Using frap

If you want to wrap the following command with frap:

find . -name *.txt

Simply replace find with frap:

frap . -name *.txt

By default, frap will wrap the find command. You can specify a different find utility (such as the excellent fd package) with the environment variable FRAP_FIND_UTILITY:

echo 'export FRAP_FIND_UTILITY=fd' >> ~/.bash_profile

In theory, you can use frap with any command or expression that outputs newline-delimited paths.

Use arrow keys (or vi arrow keys), to navigate. Right arrow or enter selects, left arrow cancels. Press '/' to search within the returned matches. Press 'q' or 'esc' to quit.

Installing frap

npm install -g @adamhamlin/frap