Skip to content

Glossary: Node.js Basics

ES modules (import / export)

Also written: ESM, import, export, type: module

JavaScript's module system, which Node uses when `package.json` has `"type": "module"`. Files share code with `export` and `import`, and can use `await` at the top level.

Where the book teaches it

Related terms

CommonJSBuilt-in module