Skip to content

Glossary: Node.js Basics

rename (fs)

Also written: rename

A `node:fs/promises` function that renames or moves a file. Within one folder it happens all at once, which is what makes atomic writes work.

Where the book teaches it

Related terms

Atomic writenode:fs/promises