How I Started Using ES6 Modules in Node.js (2026 Update)

ES modules (ESM) are now a first-class way to write Node.js code. Node supports both CommonJS and ESM, and you can opt into ESM using file extensions or package.json settings. This update gives you two clear paths: JavaScript or TypeScript. Option A: JavaScript (ESM) 1. Create a project mkdir node-esm cd node-esm npm init -y 2. Tell Node to treat .js as ESM Add this to package.json: { "type": "module" } Node will treat .js files as ESM in this package scope. If you prefer, you can also use .mjs for ESM files and .cjs for CommonJS. When there are no explicit markers, Node inspects the source to decide whether a file is ESM or CommonJS. Use explicit markers for clarity. ...

February 5, 2026 · 2 min · Chris Achinga

How to Fetch Data from an API in Angular

The Dad Jokes App: Spreading Laughter One Click at a Time Humor has a unique way of brightening up our day and creating moments of joy. In the digital age, countless apps cater to various interests, and one app that stands out is the Dad Jokes App. This lighthearted application brings a collection of witty and groan-inducing dad jokes to your fingertips, ensuring laughter is just a click away. In this article, we’ll explore the features and development of the Dad Jokes App and its impact on users’ daily lives. ...

May 29, 2023 · 5 min · Chris Achinga