0.0.11 • Published 5 years agoCLI
@vmarcosp/findr
Licence
MIT
Version
0.0.11
Deps
0
Size
21.7 MB
Vulns
0
Weekly
0
Install scriptsThis package runs scripts during installation (preinstall/install/postinstall)
Preview • Features • Commands • License
Preview
Find command
Replace command + regex
Installation
npm i -g @vmarcosp/findr
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:
--folderor-f--regexor-rregex mode--extensionor-efilter 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:
--folderor-f--regexor-rregex mode--extensionor-efilter 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