Package
prepend-file
Prepend data to a file, creating it if it doesn't exist.
Key numbers
As of 25 Sept 2026
- Weekly downloads
- 29.9k
- -14% over 12 months
- Gzip bundle size
- -
- No Bundlephobia data
- Dependencies
- 1
- Direct, from package.json
- Last release
- 4 years ago
- v2.0.1
- GitHub stars
- 36
- 9 forks
- Open issues / PRs
- 0 / 1
- Contributors
- -
- Commits, last 52 weeks
- 0
Downloads
Last week 2026-09-15 to 2026-09-21
29,944 downloads last week, 132,775 in the last month. The 12-month change of -14% compares the average of the last 4 weeks with the first 4 weeks of the series.
- Releases, last 12 months
- -
- Latest version
- 2.0.1, 11 Jan 20224 years ago
- First published
- -
- Last push to GitHub
- 5 Oct 20231,085 days before the snapshot
- Repository archived
- No
- Open issues
- 0
- Open pull requests
- 1
- Commits, last 52 weeks
- 0
- Dependents on npm
- 203
Major versions
-
Recent releases
-
- Module format
- CommonJSFrom package.json type, main and exports fields
- TypeScript types
- Bundled
- Node.js engine range
- ^10.17 || >=11.14
- Runtimes
- -
- Unpacked size (npm)
- 5.8 kB
- Dependencies (1)
temp-write
npm install prepend-file- jsDelivr
https://cdn.jsdelivr.net/npm/prepend-file@2.0.1/ - unpkg
https://unpkg.com/prepend-file@2.0.1/ - esm.sh
https://esm.sh/prepend-file@2.0.1
| Package | Weekly downloads | Gzip | Last release | Module | Comparison |
|---|---|---|---|---|---|
| arr-flatten | 9.6m | - | 9 years ago | CommonJS | - |
| @stdlib/os-float-word-order | 570.9k | - | 7 months ago | CommonJS | - |
| @stdlib/os-byte-order | 570.8k | - | 7 months ago | CommonJS | - |
| @stdlib/assert-is-buffer | 546.5k | - | 7 months ago | CommonJS | - |
| @stdlib/process-cwd | 542k | - | 7 months ago | CommonJS | - |
| @stdlib/assert-has-node-buffer-support | 361.5k | - | 7 months ago | CommonJS | - |
| @stdlib/process-read-stdin | 350.9k | - | 7 months ago | CommonJS | - |
| electron-util | 27.9k | - | 1 year ago | ESM only | - |
Indexability: Indexed.