Skip to content

Glossary: Node.js Basics

node:fs/promises

Also written: fs/promises, readFile, writeFile, readdir, stat, mkdir, copyFile, rm

The built-in module of promise-returning file functions such as `readFile`, `writeFile`, `appendFile`, `mkdir`, `readdir`, `stat`, `copyFile`, `rename` and `rm`. Unlike the `...Sync` versions, they don't block the event loop.

Where the book teaches it

Related terms

Non-blocking I/Orename (fs)glob