CommonJS Module

GPTKB entity

Statements (18)
Predicate Object
gptkbp:instanceOf JavaScript module system
gptkbp:compatibleWith ES Modules (import/export) without transpilation
gptkbp:defaultExportSyntax module.exports
gptkbp:enables modular code
gptkbp:fileExtension .js
https://www.w3.org/2000/01/rdf-schema#label CommonJS Module
gptkbp:importSyntax require()
gptkbp:introducedIn 2009
gptkbp:replacedBy ES Modules (in some environments)
gptkbp:scope file-level
gptkbp:standardizedBy CommonJS group
gptkbp:supports module.exports
require()
synchronous loading
gptkbp:usedFor server-side JavaScript
gptkbp:usedIn gptkb:Node.js
gptkbp:bfsParent gptkb:JavaScript_Module
gptkbp:bfsLayer 8