Glossary: JavaScript Beyond the Basics
node:fs
Also written: fs, node:fs/promises, readFileSync, writeFileSync, readFile, writeFile
Node's built-in file system module. The `Sync` versions make the program wait for the disk, while `node:fs/promises` gives promise versions that don't block other work.