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