Skip to content

Glossary: JavaScript Beyond the Basics

CommonJS

Also written: CJS, require, module.exports, .cjs

Node's older module system, which loads code with `require("name")` and shares it by assigning to `module.exports`. It's still found in many packages and tutorials.

Where the book teaches it

Related terms

ES modulesDynamic import