</>PackageGraphPackageGraph

write-file-atomic

npmv8.0.0

Write files in an atomic fashion w/configurable ownership

Safe to adopt

Yes — write-file-atomic scores well across adoption, maintenance, weight, supply chain, and licensing. No download data reported for this package yet. Last published 124 days ago. 4 releases in the last 2 years.

  • ?Adoption: grade ?, Not reported by this registry.

    No download data reported for this package yet.

  • BMaintenance: grade B, Good.

    Last published 124 days ago. 4 releases in the last 2 years.

  • AWeight: grade A, Excellent.

    Pulls in 1 transitive package, about 87 KB installed.

  • ASupply chain: grade A, Excellent.

    No install scripts, 4 maintainers, and a contained dependency surface.

  • ALicense: grade A, Excellent.

    ISC — permissive, with no copyleft found in the dependency tree.

Grades are computed deterministically from registry metadata collected by PackageGraph — downloads, dependents, publish dates, the resolved dependency tree, maintainer count, and declared licenses. No third-party scores are used.

Install cost

What you actually take on by adding write-file-atomic to a project.

1
Direct dependencies

Runtime packages this one declares itself.

1
Total installed

Distinct packages in the full runtime tree, deduplicated the way a package manager would.

87 KB
Install size

Unpacked size of this package plus its entire runtime tree.

1
Tree depth

Longest resolved dependency chain below this package.

Licenses in the dependency tree

ISC

Every license you inherit by installing write-file-atomic, not just its own. Check this before a legal review, not after.

Compatibility

Node.js
node ^22.22.2 || ^24.15.0 || >=26.0.0
Module format
CommonJS only
TypeScript
No bundled types
Install scripts
None

Quick start

A usage example from the write-file-atomic README.

var writeFileAtomic = require('write-file-atomic')
writeFileAtomic(filename, data, [options], [callback])

Dependencies

Declared by write-file-atomic v8.0.0. Runtime dependencies are installed with the package; dev dependencies are not.

Dev (3)

@npmcli/eslint-config ^6.0.0@npmcli/template-oss 5.0.0tap ^16.0.1

Used by

Popular packages that depend on write-file-atomic.

Relationship graph

Dependencies (left) and dependents (right) of write-file-atomic.

signal-exitwatchpack@jest/transformwrite-file-atomic
write-file-atomic dependencies dependents

Frequently installed together

graceful-fsnpm

A drop-in replacement for fs, making various improvements.

0/wk24 dependentsISC
fast-json-stable-stringifynpm

deterministic `JSON.stringify()` - a faster version of substack's json-stable-strigify without jsonify

137.5M/wk2 dependentsMITTS
jest-utilnpm

This packages is a collection of utilities and helper functions

104M/wk23 dependentsMITTS
jest-regex-utilnpm

No description provided.

74.9M/wk7 dependentsMITTS
@types/babel__corenpm

TypeScript definitions for @babel/core

0/wk9 dependentsMITTS
@jest/typesnpm

This package contains shared types of Jest's packages.

0/wk26 dependentsMITTS
slashnpm

Convert Windows backslash paths to slash paths

0/wk14 dependentsMITTS
jest-haste-mapnpm

`jest-haste-map` is a module used by Jest, a popular JavaScript testing framework, to create a fast lookup of files in a project. It helps Jest efficiently locate and track changes in files during testing, making it particularly useful for large projects

0/wk8 dependentsMITTS
convert-source-mapnpm

Converts a source-map from/to different formats and allows adding/changing properties.

0/wk7 dependentsMIT
babel-plugin-istanbulnpm

A babel plugin that adds istanbul instrumentation to ES6 code

0/wk6 dependentsBSD-3-Clause
piratesnpm

Properly hijack require, i.e., properly define require hooks and customizations

0/wk2 dependentsMITTS
@jridgewell/trace-mappingnpm

Trace the original position through a source map

0/wk20 dependentsMITTS

Release history

3 releases in the last two years, typically about 122 days apart.

Recent versions of write-file-atomic
VersionPublishedSizeLicense
8.0.0latest4 months ago12 KBISC
7.0.16 months ago12 KBISC
7.0.010 months ago12 KBISC
6.0.01 year ago12 KBISC
5.0.13 years ago12 KBISC
5.0.03 years ago12 KBISC
4.0.24 years ago12 KBISC
4.0.14 years ago12 KBISC
4.0.04 years ago12 KBISC
3.0.36 years ago12 KBISC
3.0.26 years ago12 KBISC
3.0.17 years ago12 KBISC
3.0.07 years ago11 KBISC
2.4.37 years ago12 KBISC
2.4.27 years ago12 KBISC

Overview

write-file-atomic is an npm package that write files in an atomic fashion w/configurable ownership. It has 2 known dependents in the graph. The latest version is 8.0.0, released under the ISC license.

Who should use it

Teams working in the npm ecosystem who need write files in an atomic fashion w/configurable ownership and value a focused solution.

When not to use it

Consider an alternative if you need to have first-class TypeScript types out of the box, or if a more actively-maintained option better fits your npm stack.

Pros

  • Clear open-source license (ISC).

Cons

  • No bundled TypeScript types (may require a separate @types package).

Auto-generated from collected registry metadata. No external claims are inferred.

Maintainers

Keywords

Frequently asked questions

Should I use write-file-atomic?

Yes — write-file-atomic scores well across adoption, maintenance, weight, supply chain, and licensing. No download data reported for this package yet. Last published 124 days ago. 4 releases in the last 2 years.

How do I install write-file-atomic?

Run `npm install write-file-atomic` to add write-file-atomic to your npm project.

How many dependencies does write-file-atomic have?

write-file-atomic declares 4 direct dependencies and pulls in 1 packages in total once its runtime tree is resolved totalling about 87 KB on disk.

What license is write-file-atomic released under?

write-file-atomic is distributed under the ISC license.

How popular is write-file-atomic?

npm does not publish download counts. Within PackageGraph's crawl, 2 known packages depend on write-file-atomic.

Is write-file-atomic still maintained?

The most recent release of write-file-atomic (v8.0.0) was published 4 months ago.

Does write-file-atomic run install scripts?

No. write-file-atomic does not define preinstall, install, or postinstall scripts, so installing it does not execute publisher-supplied code.