Home / Companies / Infisical / Blog / Post Details
Content Deep Dive

Stop using dotenv in Node.js v20.6.0+

Blog post from Infisical

Post Details
Company
Date Published
Author
Tony Dang
Word Count
333
Company Posts That Month
2
Language
English
Hacker News Points
-
Post removed?
No
Summary

I'm excited to say that, with Node.js v20.6.0, we now have built-in support for loading environment variables from .env files, which means you can finally stop using the dotenv package.` `With this release, you can access environment variables in a .env file in your Node.js application without needing to set up any additional configuration or use the dotenv module.` `To start using this feature, simply create a .env file at the root of your application and store environment variables there, then run your application with the --env-file flag included in the start command.

Trends Found in this Post

No tracked trend matches for this post yet.

Use This Data

Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.