Submit a product

fastmod

Command-line regex find and replace for large codebase refactors

ToolCommand lineOpen source

fastmod is a command-line tool for making the same change across many files in a codebase, using regular expression find and replace. It is aimed at developers doing large refactors, where a plain search and replace would be too blunt. The project describes it as a partial replacement for the codemod tool.

A person reviews the changes and can step in to intervene when a match needs manual handling. The source code is public under the Apache-2.0 license and is hosted in the facebookincubator organisation on GitHub. The tool is written in Rust and runs from the terminal.

Alternatives to fastmod

Products that do a similar job in Developer Tools.

All alternatives

sd

Command-line find and replace tool, a simpler alternative to sed

ToolDeveloper Tools··Open source·7.5k

ripgrep

command-line search tool that finds regex matches across directory trees

ToolDeveloper Tools··Open source·71k

Windows Terminal

Command-line terminal app and console host for Windows

ToolDeveloper Tools··Open source·106k

fzf

Command-line fuzzy finder for lists of files, history and any text

ToolDeveloper Tools··Open source·85k

lazygit

Terminal UI for running git commands with keyboard shortcuts

ToolDeveloper Tools··Open source·84k

Alacritty

GPU-accelerated terminal emulator for Linux, macOS, Windows and BSD

ToolDeveloper Tools··Open source·66k

bat

command-line file viewer with syntax highlighting and git integration

ToolDeveloper Tools··Open source·62k

GitHub CLI

Command line tool for working with GitHub from the terminal

ToolDeveloper Tools··Open source·47k·Updated Dec 2026