require() function and
module.exports, while ES modules use
export statements for similar (though not identical) functionality.
What I’m describing here is not a technical problem. It’s a matter of people getting together and making a decision to step forward and start building up something bigger and cooler together.— Kevin Dangoor
In August 2009, the project was renamed CommonJS to show the broader applicability of the APIs. Specifications are created and approved in an open process. A specification is only considered final after it has been finished by multiple implementations. CommonJS is not affiliated with the Ecma International group TC39 working on ECMAScript, but some members of TC39 participate in the project.
The list of specifications includes:
- Modules/1.0 (Superseded by Modules/1.1)
The part after the slash is the version. When a proposal is in contention, each individual proposal (including sequential revisions from the same author) is assigned a new letter. When the main direction is known it starts being assigned numeric versions.
- Console (ported from Web)
- HTTP Client/B
- Unit Testing/B,1.0,1.0.1
- Common Node
- CommonJS Compiler - a command-line tool that makes Common JS modules suitable for in-browser use
- CommonJS for PHP - a light-weight CommonJS implementation for PHP 5.3+
- Joyent Smart Platform
- Node.js (partial; synchronous)
- Mario Casciaro; Luciano Mammino (29 July 2020). Node.js Design Patterns: Design and implement production-grade Node.js applications using proven patterns and techniques, 3rd Edition. Packt Publishing. p. 62. ISBN 978-1-83921-044-0.
- "ProposalProcess - CommonJS Spec Wiki". wiki.commonjs.org. Retrieved 2021-08-05.
- "CommonJS: the First Year ·". www.blueskyonmars.com. Retrieved 2021-08-05.
- "olegp/common-node @ GitHub". olegp.github.io. Retrieved 2021-08-05.
- "CommonJS Compiler - makes your Common JS modules suitable for in-browser use". dsheiko.github.io. Retrieved 2021-08-05.
- "GitHub - DrBenton/CommonJSForPHP: A simple CommonJS spec implementation for PHP 5.3+". GitHub. Retrieved 2021-08-05.
- "Implementations/CouchDB - CommonJS Spec Wiki". wiki.commonjs.org. Retrieved 2021-08-05.
- "Implementations/GPSEE - CommonJS Spec Wiki". wiki.commonjs.org. Retrieved 2021-08-05.
- "Implementations/Smart - CommonJS Spec Wiki". wiki.commonjs.org. Retrieved 2021-08-05.
- "Homepage - JSBuild". Archived from the original on January 4, 2011.
- "The most popular database for modern apps". MongoDB. Retrieved 2021-08-05.
- "Implementations/Narwhal - CommonJS Spec Wiki". wiki.commonjs.org. Retrieved 2021-08-05.
- "Implementations/node.js - CommonJS Spec Wiki". wiki.commonjs.org. Retrieved 2021-08-05.
- "Implementations/Persevere - CommonJS Spec Wiki". wiki.commonjs.org. Retrieved 2021-08-05.
- "GitHub - pinf/loader-js: EARLY STALLED EXPLORATION". GitHub. Retrieved 2021-08-05.
- "Implementations/RingoJS - CommonJS Spec Wiki". wiki.commonjs.org. Retrieved 2021-08-05.
- "SilkJS WWW Site". Archived from the original on 2017-09-12. Retrieved 2012-10-19.
- "Implementations/SproutCore - CommonJS Spec Wiki". wiki.commonjs.org. Retrieved 2021-08-05.
- "Implementations/TeaJS - CommonJS Spec Wiki". wiki.commonjs.org. Retrieved 2021-08-05.
- "Google Code Archive - Long-term storage for Google Code Project Hosting". code.google.com. Retrieved 2021-08-05.