write-file-atomic
filename String data String | Buffer options Object chown Object uid Number gid Number encoding String | Null default = 'utf8' mode Number default = 438…
Official Documentation ↗v5.0.1. Check the official docs for the latest API surface.Installation
npm install write-file-atomicpnpm add write-file-atomicMethods
No methods match this filter.
Overview
filename String data String | Buffer options Object chown Object uid Number gid Number encoding String | Null default = ‘utf8’ mode Number default = 438 (aka 0666 in Octal) callback The file is initially named filename + “.” + md5hex(filename, process.pid, ++invocations).
API reference status
This page lists only entry points that appear verbatim in the official README examples: writeFileAtomic. Parameter and return types are not given by the official README, so signatures are marked unverified.
Errors
The following points are quoted verbatim from the official documentation. 来源:https://cdn.jsdelivr.net/gh/isaacs/write-file-atomic@latest/README.md · 取证方式:HTTP GET 官方 README/文档页(HTML 去标签) · 抓取时间:2026-11-07T13:53:31.528Z. Any error type, throw condition or recovery step not stated there is left unspecified; this page does not infer exception classes or return values.
- If it encounters errors at any of these steps it will attempt to unlink the temporary file and then pass the error back to the caller. (https://cdn.jsdelivr.net/gh/isaacs/write-file-atomic@latest/README.md)
Verification notes
- Official source: https://github.com/isaacs/write-file-atomic
- Evidence: https://cdn.jsdelivr.net/gh/isaacs/write-file-atomic@latest/README.md
- Checked on 2026-11-04 by
scripts/phase11/build-api-profiles.mjs
API reference evidence
Fetched from official sources on 2026-11-08T17:21:00+08:00 via WebFetch https://cdn.jsdelivr.net/gh/isaacs/write-file-atomic@latest/README.md.
writeFileAtomic→ signature from https://cdn.jsdelivr.net/gh/isaacs/write-file-atomic@latest/README.md; official text: “### var writeFileAtomic = require(‘write-file-atomic’) writeFileAtomic(filename, data, [options], callback)”
FAQ
- What does write-file-atomic do?
- filename String data String | Buffer options Object chown Object uid Number gid Number encoding String | Null default = 'utf8' mode Number default = 438 (aka 0666 in Octal) callback
- How do I install write-file-atomic?
- Run `npm install write-file-atomic`.
- Where can I verify the API details?
- Official repository/documentation: https://github.com/isaacs/write-file-atomic. Checked on 2026-11-04; signatures and return values not stated in the official README are marked unverified.
Report a problem with this API docOpens a pre-filled issue on GitHub.