---
title: "Discussion on \"Mastering Node.js Modules: A Clear Look at CommonJS vs ES Modules\" | Hashnode"
description: "Discussion on \"Mastering Node.js Modules: A Clear Look at CommonJS vs ES Modules\". If you're just starting with Node.js, you might have come across two different ways to import and export code: CommonJS and ES Modules."
url: "https://hashnode.com/posts/mastering-nodejs-modules-a-clear-look-at-commonjs-vs-es-modules/66bf1a2bd7b1b6d82ba4a52a"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Mastering Node.js Modules: A Clear Look at CommonJS vs ES Modules](https://devstation.hashnode.dev/mastering-nodejs-modules-a-clear-look-at-commonjs-vs-es-modules?utm_source=hashnode&utm_medium=feed)

If you're just starting with Node.js, you might have come across two different ways to import and export code: CommonJS and ES Modules.

Aug 16, 2024 · 2 min read · devstation.hashnode.dev  
Updated Aug 18, 2024  
Read the article

-   [#nodejs](https://hashnode.com/tag/nodejs)
-   [#web-development](https://hashnode.com/tag/web-development)
-   [#webdev](https://hashnode.com/tag/webdev)
-   [#javascript](https://hashnode.com/tag/javascript)
-   [#javascript-framework](https://hashnode.com/tag/javascript-framework)

## Written by

[ATUL KUMAR SINGH](https://hashnode.com/@iamatul)

@iamatul · India

  
[View profile](https://hashnode.com/@iamatul)

Full Stack web developer

Dedicated and efficient full stack developer with 8+ years of experience in application layers, presentation layers, and databases. Developed multiple web applications as a full stack developer to process, analyze, and render data visually. Worked on query optimization for the betterment of existing sections.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
