@vmarcosp/findr
v0.0.11
Published
Findr CLI ● A simple and beatiful find & replace command-line interface.
Downloads
6
Readme
Preview
Installation
npm i -g @vmarcosp/findr
OS Support
- :white_check_mark: Mac
- :white_check_mark: Linux
- :gear: Windows (WIP)
Features
- :white_check_mark: Find
- :white_check_mark: Replace
- :white_check_mark: Colorized output
- :white_check_mark: Highlight and preview occurrences
- :white_check_mark: Select files to replace
- :white_check_mark: 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