Package
replace-in-file
A simple utility to quickly replace text in one or more files.
Key numbers
As of 25 Sept 2026
- Weekly downloads
- 1.2m
- -11% over 12 months
- Gzip bundle size
- -
- No Bundlephobia data
- Dependencies
- 3
- Direct, from package.json
- Last release
- 1 month ago
- v9.0.0
- GitHub stars
- 615
- 67 forks
- Open issues / PRs
- 0 / 6
- Contributors
- -
- Commits, last 52 weeks
- 12
Downloads
Last week 2026-09-15 to 2026-09-21
1,163,604 downloads last week, 4,918,757 in the last month. The 12-month change of -11% compares the average of the last 4 weeks with the first 4 weeks of the series.
- Releases, last 12 months
- 382 in total
- Latest version
- 9.0.0, 2 Aug 20261 month ago
- First published
- 25 Jun 2015
- Last push to GitHub
- 12 Sept 202612 days before the snapshot
- Repository archived
- No
- Open issues
- 0
- Open pull requests
- 6
- Commits, last 52 weeks
- 12
- Dependents on npm
- 1,301
Major versions
- v9 first release 9.0.0, 2 Aug 2026
- v8 first release 8.0.0, 24 Jun 2024
- v7 first release 7.0.0, 28 May 2023
- v6 first release 6.0.0, 25 Apr 2020
- v5 first release 5.0.1, 15 Dec 2019
- v4 first release 4.0.0, 21 Apr 2019
- v3 first release 3.0.0, 1 Nov 2017
- v2 first release 2.0.0, 10 Aug 2016
- v1 first release 1.0.0, 19 Nov 2015
- v0 first release 0.0.1, 25 Jun 2015
Recent releases
| Version | Published |
|---|---|
| 9.0.0 | 2 Aug 2026 |
| 8.4.0 | 4 Dec 2025 |
| 8.3.1 | 4 Dec 2025 |
| 8.3.0 | 17 Dec 2024 |
| 8.2.0 | 22 Sept 2024 |
| 8.1.0 | 2 Jul 2024 |
| 8.0.3 | 2 Jul 2024 |
| 8.0.2 | 2 Jul 2024 |
| 8.0.1 | 25 Jun 2024 |
| 8.0.0 | 24 Jun 2024 |
| 7.2.0 | 26 May 2024 |
| 7.1.0 | 27 Dec 2023 |
| 7.0.2 | 27 Oct 2023 |
| 7.0.1 | 28 May 2023 |
- Module format
- ESM onlyFrom package.json type, main and exports fields
- TypeScript types
- Bundled
- Node.js engine range
- >=22.12.0
- Runtimes
- -
- Unpacked size (npm)
- 63 kB
- Dependencies (3)
globchalkyargs
npm install replace-in-file- jsDelivr
https://cdn.jsdelivr.net/npm/replace-in-file@9.0.0/ - unpkg
https://unpkg.com/replace-in-file@9.0.0/ - esm.sh
https://esm.sh/replace-in-file@9.0.0
| Package | Weekly downloads | Gzip | Last release | Module | Comparison |
|---|---|---|---|---|---|
| replace-in-files | 11.8k | - | 5 years ago | CommonJS | - |
| cpx | 209.2k | - | 10 years ago | CommonJS | replace-in-file vs cpx |
| filehound | 61.3k | - | 4 years ago | CommonJS | - |
| glob-gitignore | 106.2k | - | 1 year ago | CommonJS | - |
| rmfr | 20.9k | - | 8 years ago | - | - |
| write | 4.2m | - | 7 years ago | CommonJS | - |
| assemble-loader | 20k | - | 9 years ago | CommonJS | - |
| recursive-fs | 98.7k | - | 6 years ago | CommonJS | - |
Indexability: Indexed.