WebGlossary.info
CommonJS
- 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 and module.exports
, while ES Modules use import
and export
statements for similar (though not identical) functionality. Work on CommonJS started in 2009 under the name “ServerJS.” ← Wikipedia
- Previous term: Common Vulnerability Scoring System
- Next term: CommonMark
- Random term: Internet Resource Locator