CJS

E554833

CJS is a JavaScript module format, primarily used in Node.js, that loads modules synchronously with `require` and exports them via `module.exports`.

All labels observed (1)

Label Occurrences
CJS canonical 1

How this entity was disambiguated

Statements (46)

Predicate Object
instanceOf JavaScript module format ⓘ
canBeBundledBy Rollup (with plugins) ⓘ
Webpack ⓘ
esbuild ⓘ
category module system ⓘ
coexistsWith ECMAScript modules ⓘ
linked to: ECMAScript
comparedTo ESM ⓘ
configurationInNode package.json type field ⓘ
defaultIn early Node.js versions ⓘ
defaultTypeInNodeWithoutField commonjs ⓘ
dependencyGraph resolved at runtime ⓘ
designedFor CommonJS specification ⓘ
evaluationOrder eager ⓘ
exportMechanism exports object ⓘ
module.exports ⓘ
fullName CommonJS module format ⓘ
hasFeature __dirname ⓘ
__filename ⓘ
module-level scope ⓘ
require cache ⓘ
hasLimitation no static analysis of imports by default ⓘ
not natively supported in browsers without bundling ⓘ
importFunction require ⓘ
influenced Node.js module ecosystem ⓘ
interoperatesWith ES modules via interop bridges ⓘ
loadingMechanism synchronous ⓘ
moduleIdentifier module.id ⓘ
moduleResolution runtime resolution ⓘ
notStandardizedBy ECMA International ⓘ
originatedIn CommonJS project ⓘ
primaryUsage server-side JavaScript ⓘ
standardizedBy CommonJS working group ⓘ
supportsCircularDependencies true ⓘ
supportsDefaultExport via assigning to module.exports ⓘ
supportsDynamicLoading true ⓘ
supportsJSONRequire true in Node.js ⓘ
supportsNamedExports via properties on module.exports ⓘ
supportsNativeAddons true in Node.js ⓘ
supportsTopLevelAwait false ⓘ
typicalFileExtension .js ⓘ
typicalUsagePattern const x = require('x'); ⓘ
module.exports = function() {}; ⓘ
usedFor code organization ⓘ
dependency management ⓘ
packaging reusable libraries ⓘ
usedIn Node.js ⓘ

How these facts were elicited

Referenced by (1)

Full triples — surface form annotated when it differs from this entity's canonical label.