---
title: "Comment by Jon Collins on \"What is .env file in Node.js?\" | Hashnode"
description: "Great write up Joanna! The .env can often be mysterious when starting out and I’m glad you mention that it needs to be included in the gitignore! A lot of us at"
url: "https://hashnode.com/posts/what-is-env-file-in-nodejs/64cb0da93f957ec7a471aa35/comment/64cba4a6168be6c0a17e611d"
---

[Discussion](https://hashnode.com/posts/what-is-env-file-in-nodejs/64cb0da93f957ec7a471aa35)

Comment [What is .env file in Node.js?](https://hashnode.com/posts/what-is-env-file-in-nodejs/64cb0da93f957ec7a471aa35)

[Jon Collins](https://hashnode.com/@NinjaD3v)

[Aug 3, 2023](https://hashnode.com/posts/what-is-env-file-in-nodejs/64cb0da93f957ec7a471aa35/comment/64cba4a6168be6c0a17e611d)

Great write up Joanna! The .env can often be mysterious when starting out and I’m glad you mention that it needs to be included in the gitignore! A lot of us at some point have pushed a env file full of db creds into GitHub 😂. Well done, and I look forward to more articles!!

[Joanna](https://hashnode.com/@joannaterm)

[Aug 3, 2023](https://hashnode.com/posts/what-is-env-file-in-nodejs/64cb0da93f957ec7a471aa35/comment/64cba4a6168be6c0a17e611d#reply-64cba88d168be6c0a17e6193)

Haha I am so glad you found it helpful Jonathan! Thank you so much for your support!
