CmdID

CmdID / Commands

fastmod

A fast partial replacement for the codemod tool, replace and replace all in the whole codebase. tldr-pages

On several platforms

Opens CmdID with your command. It is read in your browser and sent nowhere.

Several platforms

from tldr-pages, CC BY 4.0

A fast partial replacement for the codemod tool, replace and replace all in the whole codebase. Regexes are matched by Rust regex crate.

Replace a regex in all files of the current directory, ignoring files on .ignore and .gitignore

fastmod regex replacementIdentify

Replace a regex in case-insensitive mode in specific files or directories

fastmod --ignore-case regex replacement -- path/to/file_or_directory1 path/to/file_or_directory2 ...Identify

Replace a regex in a specific directory in files filtered with a case-insensitive glob pattern

fastmod regex replacement --dir path/to/directory --iglob '**/*.{js,json}'Identify

Replace for an exact string in .js or JSON files

fastmod --fixed-strings exact_string replacement --extensions json,jsIdentify

Replace for an exact string without prompt for a confirmation (disables regex)

fastmod --accept-all --fixed-strings exact_string replacementIdentify

Replace for an exact string without prompt for a confirmation, printing changed files

fastmod --accept-all --print-changed-files --fixed-strings exact_string replacementIdentify