- A project to standardize the module ecosystem for JavaScript outside of web browsers. CommonJS is widely used for server-side JavaScript with Node.js. It is also used for browser-side JavaScript, though that code must be packaged with a transpiler as browsers don’t support CommonJS. The other major module specification in use is the ES Modules (ESM) specification. CommonJS can be recognized by the use of the
require()function andmodule.exports, while ES Modules useimportandexportstatements for similar (though not identical) functionality. Work on CommonJS started in 2009 under the name “ServerJS.” ← Wikipedia
This term is sponsored by: your name/company?
- Previous term: Common Vulnerability Scoring System
- Next term: CommonMark
- Random term: Event handler (webglossary.info/random 🎲)