Skip to content
JS
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.

v2.0.0, 4 Sept 2019MITCommonJSTypes: NoneFiles and file systemsPromises and async control flow
$ npm install write

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
02m4m6m8mSept 2025Mar 2026Sept 2026High 8m (25 Nov 2025)Low 2m (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.

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

  1. v2 first release 2.0.0, 4 Sept 2019
  2. v1 first release 1.0.0, 9 Jul 2017
  3. v0 first release 0.1.1, 28 Jun 2014

Recent releases

VersionPublished
2.0.04 Sept 2019
1.0.311 Jul 2017
1.0.211 Jul 2017
1.0.110 Jul 2017
1.0.09 Jul 2017
0.3.324 Mar 2017
0.3.217 Aug 2016
0.3.121 Mar 2016
0.3.09 Mar 2016
0.2.129 Jul 2015
0.2.07 Apr 2015
0.1.128 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
  • jsDelivrhttps://cdn.jsdelivr.net/npm/write@2.0.0/
  • unpkghttps://unpkg.com/write@2.0.0/
  • esm.shhttps://esm.sh/write@2.0.0
PackageWeekly downloadsGzipLast releaseModuleComparison
@stdlib/fs-read-file345k-7 months agoCommonJS-
@stdlib/fs-resolve-parent-path542k-7 months agoCommonJS-
@mrmlnc/readdir-enhanced3m-8 years agoCommonJS-
filehound61.3k-4 years agoCommonJS-
replace-in-file1.2m-1 month agoESM only-
firstline46.4k-8 years agoCommonJS-
promise-fs91.9k-7 years agoCommonJS-
glob-gitignore106.2k-1 year agoCommonJS-
Sources: npm registry, npm downloads API, GitHub API. Data fetched 25 Sept 2026.

Indexability: Indexed.