Skip to content

Glossary: JavaScript Beyond the Basics

ES modules

Also written: ESM, import/export, .mjs, ES module

The standard module system, using `import` and `export`. Setting `"type": "module"` in `package.json` makes Node treat your `.js` files this way.

Where the book teaches it

Related terms

CommonJSPackage