Skip to content

Glossary: Node.js Basics

.env file

Also written: .env, .env.example, --env-file

A file of `NAME=value` settings that Node loads with `--env-file=.env`. Keep it out of Git because it can hold secrets, and commit `.env.example` to list the names for others.

Where the book teaches it

Related terms

Environment variableSecret