Skip to content

Glossary: Node.js Basics

Atomic write

Also written: atomic

Saving a file by writing a temporary `.tmp` file and then renaming it over the original. The real file is always a complete old or new version, never half-written after a crash.

Where the book teaches it

Related terms

rename (fs)