CommonJS

Node.js's original module system, which loads code with require() and exports it with module.exports.

In more detail

CJS stands for CommonJS. It predates ECMAScript modules and is still used by many tools, so libraries often publish both formats. Its dynamic require calls make unused code harder for bundlers to remove.

Related terms

Taught in

References