npm.io
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)


PreviewFeaturesCommandsLicense


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:

  • 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:

  • Text to replace
  • 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