dotenv

A popular npm package that reads a .env file into process.env, which Node.js can now do natively with --env-file.

In more detail

Older projects call require("dotenv").config() at start-up. The built-in flag and process.loadEnvFile() remove that dependency.

Related terms

Taught in

References