Searches and replaces matching text across files with previews and local undo data.
- Literal/regex search.
- Case and word controls.
- Interactive review.
- Dry-run diffs.
- Local history and undo.
Prerequisites: Node.js >=20 and npm. The checkout below pins the source used for this documentation.
git clone https://github.com/NickCirv/code-search-replace.git
cd code-search-replace
git checkout bd9a537f07bf1a7449f08a222d0b7bd4c9d89770
node index.js "TODO" "NEXT" "**/*.js" --dry-runExpected behavior (illustrative, not captured): Displays proposed replacements without applying them.
Examples are source-inspected, not runtime-tested. See the research record for verification gaps.
Replacement and undo commands write files. Regex and glob handling use the tool's own parsers; preview the exact match set and keep version-control backups.
The manifest defines npm test as:
node --testThe captured suite is a smoke check, not end-to-end behavior coverage. Examples include “entry is valid JavaScript”. Tests were not run for this documentation revision.
See implementation and command reference for the package scripts and inspected interfaces, and research record for the pinned source, document decisions and unresolved checks.
See LICENSE for the original terms and attribution. Legal text is unchanged.
