dotenv@17.4.2
// Loads environment variables from .env file
$ npm install dotenv
downloads/wk
144,816,352
license
BSD-2-Clause
version
17.4.2
published
Apr 12, 2026
What is dotenv?
dotenv is a Node.js package that reads environment variables from a .env file and loads them into your application's process.env object. Developers use it to manage configuration settings like database credentials, API keys, and other sensitive data separately from their source code. This approach keeps secrets out of version control and makes it easy to use different settings across development, testing, and production environments.
Links
Keywords
Maintainers
scottmotte, motdotla, motdotenv