npm / replace-in-file
replace-in-file
What changed in replace-in-file 4 to 6, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.
2 breaking3 new APIs and options
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initreplace-in-file 61 changes
Breaking changes 1
Version 6.0.0 requires Node 10 or higher; use version 5.x.x for Node 8 support.
replace-in-file 44 changes
Breaking changes 1
The return value is now a results array containing each processed file, whether it changed, and optionally match and replacement counts.
New APIs and options 3
Adds a flag to count the number of matches and replacements per file.
Adds a configuration parameter for network drive replacements.
Adds a CLI flag to suppress success output.