Skip to content

Latest commit

 

History

6 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nicholas Ashkar — code-search-replace

code-search-replace

Searches and replaces matching text across files with previews and local undo data.

What it does

  • Literal/regex search.
  • Case and word controls.
  • Interactive review.
  • Dry-run diffs.
  • Local history and undo.

Quickstart

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-run

Expected behavior (illustrative, not captured): Displays proposed replacements without applying them.

Examples are source-inspected, not runtime-tested. See the research record for verification gaps.

Boundaries and data

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.

Development

The manifest defines npm test as:

node --test

The 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.

License and contact

See LICENSE for the original terms and attribution. Legal text is unchanged.

Nicholas Ashkar · Discuss a project

About

Zero-dependency CLI for multi-file find & replace with regex, diff preview, and undo

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages