Skip to content

Glossary: JavaScript Basics

node:fs

Also written: fs, file system, readFileSync, built-in modules

One of Node's built-in modules, whose names start with `node:`. Its `readFileSync` function reads a whole file as a string and makes the program wait until reading is done.

Where the book teaches it

Related terms

ModuleJSONUTF-8