# replace-in-file — card for AI agents

Replaces text in one or more files from Node.js or the CLI.

Category: Dev workflow and config · npm package `replace-in-file` · latest version 9.0.0 (checked 2026-11-01)
Install: `npm install replace-in-file`
License: MIT (permissive)

In your own product (generator, app, hosted service): **yes**. Permissive license: ship it inside your own product, closed or open source, and keep its license and copyright notice.

## Numbers (AgentGid data)
- Gid Score: 38.5 (#3316 of all tools, 240 of 299 in its category)
- Used in 3 public projects set up for AI coding agents (0.0%)
- Downloads last week: 2,139,536 (as of 2026-11-24), +30.3% over 4 weeks
- GitHub stars: 617 (as of 2026-11-24)
- Last push: 2026-10-10

## Often used with
Jest 71.4%, Husky 57.1%, Lodash 42.9%, Axios 42.9%, Babel (JavaScript) 42.9%, cross-env 42.9%

## Links
- AgentGid page: https://agentgid.com/tools/replace-in-file/
- Homepage: https://github.com/adamreisnz/replace-in-file#readme
- Repository: https://github.com/adamreisnz/replace-in-file

---
AgentGid's catalog is curated: every entry was checked against the maker's official pages (registry, repository, license and pricing pages) on the date shown; a license value shows the quote it stands on wherever AgentGid has one. Usage numbers come from AgentGid's own scan of public repositories set up for AI coding agents. Claims by makers are reported, not tested by AgentGid.
