---
title: "Discussion on \"How to Use Environment Files (.env) in Node.js | Tushar Khatri\" | Hashnode"
description: "Discussion on \"How to Use Environment Files (.env) in Node.js | Tushar Khatri\". Learn all about dotenv npm package and .gitignore file to keep our secrets safe in an express.js app."
url: "https://hashnode.com/posts/how-to-use-environment-variables-in-nodejs/635bed19a7f775ca33ffdb87"
---

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

Discussion

# [How to Use Environment Files (.env) in Node.js | Tushar Khatri](https://blog.tusharkhatri.in/how-to-use-environment-variables-in-nodejs?utm_source=hashnode&utm_medium=feed)

Learn all about dotenv npm package and .gitignore file to keep our secrets safe in an express.js app.

Oct 28, 2022 · 3 min read · blog.tusharkhatri.in  
Read the article

-   [#how-to-use-env-files](https://hashnode.com/tag/how-to-use-env-files)
-   [#nodejs-tutorial](https://hashnode.com/tag/nodejs-tutorial)
-   [#env-files-tutorial](https://hashnode.com/tag/env-files-tutorial)
-   [#environmental-variables-tutorial](https://hashnode.com/tag/environmental-variables-tutorial)
-   [#what-are-env-files-in-programming](https://hashnode.com/tag/what-are-env-files-in-programming)

## Written by

[Tushar Khatri](https://hashnode.com/@tusharkhatri)

@tusharkhatri · New Delhi, India

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

I write code...

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
