vmarcosp / findr

πŸ”Ž A simple and intuitive find & replace command-line interface.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool


Preview β€’ Features β€’ Commands β€’ License


Preview


Find command



Replace command + regex

Installation

Using npm or yarn

npm i -g @vmarcosp/findr
# or
yarn global add @vmarcosp/findr

Using curl + script

curl -fsSL https://github.com/vmarcosp/findr/raw/master/scripts/install.sh | bash

OS Support

  • βœ…   Mac
  • βœ…   Linux
  • βš™οΈ   Windows (WIP)

Features

  • βœ…   Find
  • βœ…   Replace
  • βœ…   Colorized output
  • βœ…   Highlight and preview occurrences
  • βœ…   Select files to replace
  • βœ…   Regex support
  • βš™οΈ   Select ocurrences to replace (WIP)

Commands

Find command:

Positional arguments:

  • 1ΒΊ Text to find

Named arguments:

  • --folder or -f
  • --regex or -r regex mode
  • --extension or -e filter files by extension

Example:

  # Basic usage
  findr find "write_file" --folder src

  # Filtering by extension
  findr find "write_file" --folder src --extension re,js

Replace command:

Positional arguments:

  • 1ΒΊ Text to replace
  • 2ΒΊ New text

Named arguments:

  • --folder or -f
  • --regex or -r regex mode
  • --extension or -e filter files by extension

Example:

  # Basic usage
  findr replace "write_file" "create_file" --folder src

  # Regex mode
  findr replace "\bwrite_file" "create_file" --folder src --regex

License

MIT

About

πŸ”Ž A simple and intuitive find & replace command-line interface.

License:MIT License


Languages

Language:Reason 75.8%Language:JavaScript 15.4%Language:Shell 8.6%Language:C++ 0.1%