---
title: "#commonjs articles | Hashnode"
description: "Explore 34 articles tagged #commonjs on Hashnode. Tutorials, guides, and how-tos from the community."
url: "https://hashnode.com/tag/commonjs"
---

Tag

# #commonjs

34 posts · 0 followers

[VISHAL RAY](https://hashnode.com/@rayvishal) · [May 10](https://hashnode.com/posts/javascript-modules-import-and-export-explained/6a0080dbe3eebc2e207c7b54)

### [JavaScript Modules Import and Export Explained](https://rayvishal.hashnode.dev/javascript-modules-import-and-export-explained?utm_source=hashnode&utm_medium=feed)

In this article we are going to discuss about javascript modules, how to import / export . so before moving toward these first understand why we need modules actually. Code organization problems Javas

1 min read · [rayvishal.hashnode.dev](https://rayvishal.hashnode.dev/javascript-modules-import-and-export-explained?utm_source=hashnode&utm_medium=feed)

[Juan Carlos Aviles Lazcano](https://hashnode.com/@jaxian) · [Apr 30](https://hashnode.com/posts/the-export-class-mystery-a-survival-guide-for-js-dinosaurs/69f38723909e64ad07fe854a)

### [The "Export Class" Mystery: A Survival Guide for JS Dinosaurs](https://onegarlos.hashnode.dev/the-export-class-mystery-a-survival-guide-for-js-dinosaurs?utm_source=hashnode&utm_medium=feed)

(BTW, my first piece of JS code was in 1999, ouch!)

6 min read · [onegarlos.hashnode.dev](https://onegarlos.hashnode.dev/the-export-class-mystery-a-survival-guide-for-js-dinosaurs?utm_source=hashnode&utm_medium=feed)

[1](https://hashnode.com/posts/the-export-class-mystery-a-survival-guide-for-js-dinosaurs/69f38723909e64ad07fe854a)

[Parikar Agarwal](https://hashnode.com/@infouser) · [Apr 20](https://hashnode.com/posts/writing-modular-code-with-javascript/69e628221faed8cd14a5eecf)

### [Writing Modular Code with JavaScript](https://js-arr-functs.hashnode.dev/writing-modular-code-with-javascript?utm_source=hashnode&utm_medium=feed)

Find a needle in the haystack. Let us try to take it literally. Suppose Mr Beast came up to you and asked you to find the needle in the Haystack as fast as possible. How would you approach it? To me,

6 min read · [js-arr-functs.hashnode.dev](https://js-arr-functs.hashnode.dev/writing-modular-code-with-javascript?utm_source=hashnode&utm_medium=feed)

[Mehtab](https://hashnode.com/@mehtab-786) · [Apr 16](https://hashnode.com/posts/javascript-modules/69e0cbcc94b913c91321a12a)

### [JavaScript Modules: Import and Export Explained](https://mehtabblogs.hashnode.dev/javascript-modules?utm_source=hashnode&utm_medium=feed)

How to use import and export, with the help of common and module js. Commonjs is synchronous and Modulejs is ascynchronous ,

4 min read · [mehtabblogs.hashnode.dev](https://mehtabblogs.hashnode.dev/javascript-modules?utm_source=hashnode&utm_medium=feed)

[sagar kemble](https://hashnode.com/@SagarKemble) · [Mar 26](https://hashnode.com/posts/javascript-modules-import-and-export-explained/69c587ab10e664c5da1f56ec)

### [JavaScript Modules : Import and Export Explained](https://blog.sagarkemble.dev/javascript-modules-import-and-export-explained?utm_source=hashnode&utm_medium=feed)

Guide to understand what modules in JavaScript are, its types and why they are important for writing clean and maintainable code.

3 min read · [blog.sagarkemble.dev](https://blog.sagarkemble.dev/javascript-modules-import-and-export-explained?utm_source=hashnode&utm_medium=feed)

[Satpalsinh Rana](https://hashnode.com/@satpalsinh) · [Mar 18](https://hashnode.com/posts/cjs-vs-esm/69bae5fe8c55d6eefb45dd2b)

### [CommonJs Vs EcmaScript Modules](https://blogs.satpal.cloud/cjs-vs-esm?utm_source=hashnode&utm_medium=feed)

Basic to advance guide to understand CJS and ESM

8 min read · [blogs.satpal.cloud](https://blogs.satpal.cloud/cjs-vs-esm?utm_source=hashnode&utm_medium=feed)

[abhishek aadarsh](https://hashnode.com/@shhekk) · [Jan 14](https://hashnode.com/posts/which-module-to-choose-nodenext-or-esnext/69678e8a0c19e185daa40b2a)

### [which module to choose nodenext or esnext](https://shhekk.hashnode.dev/which-module-to-choose-nodenext-or-esnext?utm_source=hashnode&utm_medium=feed)

Lets Understand what is nodenext and esnext which you usually find in tsconfig.json but don't know what these options actually does. Before that you must have a basic understanding of esm and cjs. In .js file if something is being exported, it become...

4 min read · [shhekk.hashnode.dev](https://shhekk.hashnode.dev/which-module-to-choose-nodenext-or-esnext?utm_source=hashnode&utm_medium=feed)

[Junghun Kim](https://hashnode.com/@vienna453) · [Nov 8, 2025](https://hashnode.com/posts/tree-shaking/690ede76f68b8a110909dd25)

### [번들러가 코드 크기를 줄이는 진정한 방법 — Tree Shaking의 원리와 한계](https://devnote-vienna453.hashnode.dev/tree-shaking?utm_source=hashnode&utm_medium=feed)

Tree Shaking으로 번들 사이즈를 줄이는 원리와 한계를 살펴보고, ESM 기반 최적화 방법을 알아봅니다

5 min read · [devnote-vienna453.hashnode.dev](https://devnote-vienna453.hashnode.dev/tree-shaking?utm_source=hashnode&utm_medium=feed)

[Anish Tilloo](https://hashnode.com/@anishtilloo) · [Sep 20, 2025](https://hashnode.com/posts/debugging-must-use-import-to-load-es-module-in-nodejs-typescript/68ce2de5ce1273886688e2fc)

### [Debugging “Must use import to load ES Module” in Node.js + TypeScript](https://debugjs-1.hashnode.dev/debugging-must-use-import-to-load-es-module-in-nodejs-typescript?utm_source=hashnode&utm_medium=feed)

Learn how to fix the ‘Must use import to load ES Module’ error in Node.js and TypeScript. Understand the difference between CommonJS and ESM, and configure

4 min read · [debugjs-1.hashnode.dev](https://debugjs-1.hashnode.dev/debugging-must-use-import-to-load-es-module-in-nodejs-typescript?utm_source=hashnode&utm_medium=feed)

[Sagar Kumar Jha](https://hashnode.com/@devsagarkrjha) · [Aug 6, 2025](https://hashnode.com/posts/json-and-its-common-operations/68931e875436053b332083a0)

### [JSON and its Common Operations](https://devsagarkumarjha.hashnode.dev/json-and-its-common-operations?utm_source=hashnode&utm_medium=feed)

✅ What is JSON? JSON (JavaScript Object Notation) is a lightweight data-interchange format that is: Easy for humans to read and write Easy for machines to parse and generate It is commonly used for: Data storage Data exchange between client and...

3 min read · [devsagarkumarjha.hashnode.dev](https://devsagarkumarjha.hashnode.dev/json-and-its-common-operations?utm_source=hashnode&utm_medium=feed)

[1](https://hashnode.com/posts/json-and-its-common-operations/68931e875436053b332083a0)
