The CJS module system, globals and other hardships with maintainable code in Node.js
Analyzes common tight coupling patterns in Node.js code, such as global variables and hardcoded dependencies, and their impact on maintainability.
Analyzes common tight coupling patterns in Node.js code, such as global variables and hardcoded dependencies, and their impact on maintainability.
Node.js v23.6.0 introduces built-in TypeScript support via type stripping, explaining how it works and key differences from traditional TypeScript.
A guide to importing frontend JavaScript libraries without using a build system, covering ES Modules, classic scripts, and CommonJS.
A guide on creating an npm package with TypeScript that supports both CommonJS and ECMAScript Modules (ESM).
A developer's guide to upgrading a personal website from Eleventy v2 to the new v3 alpha, focusing on the switch to ESM.
Explores a conceptual approach to transforming CommonJS modules into ES Modules by treating each CJS file as a 'builder' function.
A guide to publishing an npm package that supports both ESM and CommonJS modules using TypeScript, including dual tsconfig files and package.json exports.
A developer's analysis of the CommonJS vs. ESM debate in JavaScript, explaining the differences, benefits, and drawbacks of each module system.
A solution for getting __dirname in both ESM and CommonJS modules, useful for TypeScript projects targeting both formats.
A guide to enabling and using ES Modules (import/export) in Node.js, covering .mjs files, package.json configuration, and module imports.
Explains how to enable and use ES6 import syntax in Node.js projects, covering package.json configuration and Babel setup.
A guide to getting started with ESModules in Node.js, covering setup and common errors.
Learn how to use modules in Node.js to organize code into separate files, export functionality, and create a modular application structure.
A quick overview of JavaScript module formats: IIFE for browsers, CommonJS for Node.js, and ES6 modules for modern frontend builds.
Explains how to import non-ESM JavaScript libraries (globals, CommonJS) into ES Modules for client-side use, with practical examples.