fastmod
A fast command-line tool for interactive regex search and replace across a large codebase.
These buttons open the developer's own site, repository or store listing in a new tab. wares.gg does not host downloads.
1 more ways to get fastmod
Package managers
- Homebrew
brew install fastmod
About fastmod
fastmod is a partial replacement for the codemod tool, built to help with large-scale refactors. You give it a regular expression and a replacement, and it walks the codebase showing each match so you can accept, reject or edit the change by hand.
It supports most of codemod's options but focuses on the interactive find-and-replace case, where a person reviews changes rather than applying them blindly. It suits developers renaming APIs or updating patterns across many files.
Strengths
- Interactive review of each replacement
- Supports most codemod options
- Handles large codebases quickly
Limitations
- Regex-based, so it does not understand code syntax
- Small project with occasional updates
Details
- Pricing
- FreeFree and open source.
- License
- Apache-2.0
- Developer
- Meta (facebookincubator)
- Platforms
- Command line
- How it runs
- Downloadable app
- Account
- Not required
- Works offline
- Yes
- Best suited for
- Developers doing reviewed search-and-replace refactors across many files
- Categories
- CLI tools, Developer tools
- Last verified
- Added
- Provenance
- Facts checked against the developer's own pages and store listings, 1 sources on file.
Alternatives to fastmod
Compare allSoftware that can replace fastmod for an important use case, and what changes if you switch.
sad
A command-line batch search and replace tool that shows a diff before changes are applied.
sad shows a diff preview before changing files and uses fzf for selective replacement, which must be installed separately; it runs on macOS and Linux only.
scooter
Review and apply text replacements through a terminal interface.
scooter reviews and applies text replacements through a terminal interface on Windows, macOS and Linux, and skips matches that changed since the search ran.
ast-grep
Search and rewrite source code using its structure instead of text alone.
ast-grep matches and rewrites code by its syntax structure instead of regex, and adds reusable lint rules, but patterns depend on the selected programming language.
fastmod as an alternative
Listings that name fastmod as an alternative.
sd
Replace text with a focused command-line tool.
fastmod focuses on interactive regex search and replace across a codebase with review of each change, rather than quick one-shot replacements.
Serpl
A terminal interface for searching and replacing text across a whole project folder.
fastmod reviews each regex replacement interactively across large codebases, without ast-grep support and without requiring ripgrep.
Similar software
Related functionality, not necessarily a direct replacement.
ugrep
A grep-compatible file searcher with a text interface, Boolean queries, fuzzy matching and archive search.
ack
A grep-like source code search tool built for programmers working in large code trees.
Difftastic
Compare source files by syntax to highlight meaningful changes.
Diff So Fancy
Make terminal diffs easier to read with clearer highlighting.