---
title: "Discussion on \"How to Use .env with ES6 Modules\" | Hashnode"
description: "Discussion on \"How to Use .env with ES6 Modules\". Learn how to configure and use `.env` with ES6 modules in Node.js applications to manage environment variables efficiently"
url: "https://hashnode.com/posts/how-to-use-env-with-es6-modules/66dd75c83d1895bac7071af8"
---

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

Discussion

# [How to Use .env with ES6 Modules](https://nirmalsankalana.hashnode.dev/how-to-use-env-with-es6-modules?utm_source=hashnode&utm_medium=feed)

Learn how to configure and use \`.env\` with ES6 modules in Node.js applications to manage environment variables efficiently

Sep 8, 2024 · 4 min read · nirmalsankalana.hashnode.dev  
Read the article

-   [#dotenv](https://hashnode.com/tag/dotenv)
-   [#javascript](https://hashnode.com/tag/javascript)
-   [#es6](https://hashnode.com/tag/es6)
-   [#nodejs](https://hashnode.com/tag/nodejs)
-   [#expressjs-cilb5apda0066e053g7td7q24](https://hashnode.com/tag/expressjs-cilb5apda0066e053g7td7q24)

## Written by

[Nirmal Sankalana](https://hashnode.com/@nirmalsankalana)

@nirmalsankalana · Sri Lanka

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

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
