Package
write
Write data to a file, replacing the file if it already exists and creating any intermediate directories if they don't already exist. Thin wrapper around node's native fs methods.
Key numbers
As of 25 Sept 2026
- Weekly downloads
- 4.2m
- -20% over 12 months
- Gzip bundle size
- -
- No Bundlephobia data
- Dependencies
- 1
- Direct, from package.json
- Last release
- 7 years ago
- v2.0.0
- GitHub stars
- 82
- 7 forks
- Open issues / PRs
- 4 / 0
- Contributors
- -
- Commits, last 52 weeks
- 0
Downloads
Last week 2026-09-15 to 2026-09-21
4,166,447 downloads last week, 14,994,953 in the last month. The 12-month change of -20% compares the average of the last 4 weeks with the first 4 weeks of the series.
- Releases, last 12 months
- 012 in total
- Latest version
- 2.0.0, 4 Sept 20197 years ago
- First published
- 12 Feb 2014
- Last push to GitHub
- 4 Sept 20192,577 days before the snapshot
- Repository archived
- No
- Open issues
- 4
- Open pull requests
- 0
- Commits, last 52 weeks
- 0
- Dependents on npm
- 475
Major versions
- v2 first release 2.0.0, 4 Sept 2019
- v1 first release 1.0.0, 9 Jul 2017
- v0 first release 0.1.1, 28 Jun 2014
Recent releases
| Version | Published |
|---|---|
| 2.0.0 | 4 Sept 2019 |
| 1.0.3 | 11 Jul 2017 |
| 1.0.2 | 11 Jul 2017 |
| 1.0.1 | 10 Jul 2017 |
| 1.0.0 | 9 Jul 2017 |
| 0.3.3 | 24 Mar 2017 |
| 0.3.2 | 17 Aug 2016 |
| 0.3.1 | 21 Mar 2016 |
| 0.3.0 | 9 Mar 2016 |
| 0.2.1 | 29 Jul 2015 |
| 0.2.0 | 7 Apr 2015 |
| 0.1.1 | 28 Jun 2014 |
- Module format
- CommonJSFrom package.json type, main and exports fields
- TypeScript types
- None
- Node.js engine range
- >=10
- Runtimes
- -
- Unpacked size (npm)
- 19 kB
- Dependencies (1)
add-filename-increment
npm install write- jsDelivr
https://cdn.jsdelivr.net/npm/write@2.0.0/ - unpkg
https://unpkg.com/write@2.0.0/ - esm.sh
https://esm.sh/write@2.0.0
| Package | Weekly downloads | Gzip | Last release | Module | Comparison |
|---|---|---|---|---|---|
| @stdlib/fs-read-file | 345k | - | 7 months ago | CommonJS | - |
| @stdlib/fs-resolve-parent-path | 542k | - | 7 months ago | CommonJS | - |
| @mrmlnc/readdir-enhanced | 3m | - | 8 years ago | CommonJS | - |
| filehound | 61.3k | - | 4 years ago | CommonJS | - |
| replace-in-file | 1.2m | - | 1 month ago | ESM only | - |
| firstline | 46.4k | - | 8 years ago | CommonJS | - |
| promise-fs | 91.9k | - | 7 years ago | CommonJS | - |
| glob-gitignore | 106.2k | - | 1 year ago | CommonJS | - |
Indexability: Indexed.