Node Underground
Node Underground
Jul 13, 2021 · Backend Development

Why Do export and import Behave Differently in Node.js ESM?

This article explores how various export syntaxes in ES modules affect the binding behavior of imported values in Node.js, demonstrating differences between named exports, default exports, destructuring, and circular dependencies with clear code examples.

ESMExportNode.js
0 likes · 7 min read
Why Do export and import Behave Differently in Node.js ESM?
Node Underground
Node Underground
Aug 27, 2019 · Backend Development

Master Node.js Module System: Loading, Caching, and CommonJS Pitfalls

This article explains Node.js's CommonJS module system, covering how require loads modules, the role of module.exports versus exports, module classification, loading order, caching behavior, circular dependencies, and provides practical code examples for interview preparation.

CommonJSExportsNode.js
0 likes · 10 min read
Master Node.js Module System: Loading, Caching, and CommonJS Pitfalls