# What changed in replace-in-file

> 5 changes in replace-in-file 4 to 6 from its official release notes, upgrade guides and advisories: 2 breaking, 3 new APIs and options. Each one cited. Sources checked 2026-11-30. HTML: https://unstale.sh/npm/replace-in-file/

To see which of these apply to a repository, run `npx @unstale/cli init` in it.

## replace-in-file 6

### Breaking changes

- Version 6.0.0 requires Node 10 or higher; use version 5.x.x for Node 8 support. (6.0.0) — [release notes](https://github.com/adamreisnz/replace-in-file/blob/HEAD/CHANGELOG.md)

## replace-in-file 4

### Breaking changes

- The return value is now a results array containing each processed file, whether it changed, and optionally match and replacement counts. (4.0.0) — [release notes](https://github.com/adamreisnz/replace-in-file/releases/tag/v4.0.0)

### New APIs and options

- Adds a flag to count the number of matches and replacements per file. (4.0.0) — [release notes](https://github.com/adamreisnz/replace-in-file/releases/tag/v4.0.0)
- Adds a configuration parameter for network drive replacements. (4.0.0) — [release notes](https://github.com/adamreisnz/replace-in-file/releases/tag/v4.0.0)
- Adds a CLI flag to suppress success output. (4.0.0) — [release notes](https://github.com/adamreisnz/replace-in-file/releases/tag/v4.0.0)
