Skip to content
JS
Package

prepend-file

Prepend data to a file, creating it if it doesn't exist.

v2.0.1, 11 Jan 2022MITCommonJSTypes: BundledUtility librariesNode.js utilities
$ npm install prepend-file

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
020k40k60kSept 2025Mar 2026Sept 2026High 53.9k (25 Nov 2025)Low 18.1k (23 Dec 2025)
Weekly npm downloads, one point per week, weeks starting 23 Sept 2025 to 15 Sept 2026. The y axis starts at zero.

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
  • jsDelivrhttps://cdn.jsdelivr.net/npm/prepend-file@2.0.1/
  • unpkghttps://unpkg.com/prepend-file@2.0.1/
  • esm.shhttps://esm.sh/prepend-file@2.0.1
PackageWeekly downloadsGzipLast releaseModuleComparison
arr-flatten9.6m-9 years agoCommonJS-
@stdlib/os-float-word-order570.9k-7 months agoCommonJS-
@stdlib/os-byte-order570.8k-7 months agoCommonJS-
@stdlib/assert-is-buffer546.5k-7 months agoCommonJS-
@stdlib/process-cwd542k-7 months agoCommonJS-
@stdlib/assert-has-node-buffer-support361.5k-7 months agoCommonJS-
@stdlib/process-read-stdin350.9k-7 months agoCommonJS-
electron-util27.9k-1 year agoESM only-
Sources: npm registry, npm downloads API, GitHub API. Data fetched 25 Sept 2026.

Indexability: Indexed.