Modules (CommonJS & ESM) — Roadmap Step & Resources
require/module.exports and ES module usage in Node
- Level: intermediate
- Estimated time: 1 days
- Roadmap: Vue.js Stack
Before this step
Study resources
- Modules: CommonJS modules (Article) — Node.js's official documentation on require/module.exports and the CommonJS module system.
- Node.js ECMAScript Modules (Article) — Official Node.js docs on native ES modules, differences from CommonJS, package.json type module, and interop.
- CommonJS vs ES Modules in Node.js (Video) — Web Dev Simplified clarifies the difference between require() and import/export syntax in modern Node.js.
Part of
- Node.js — section
- Vue.js Stack roadmap — the full learning path