# Settings from Environment Variables

A setting that changes from one computer to another, such as where a data folder is, belongs in an environment variable, which a Node program reads from process.env with a default from ??, and which comes from the terminal or from an .env file loaded with node --env-file.

![Cheat sheet: Settings from Environment Variables](https://fsdtrainingmedia.blob.core.windows.net/public/images/2026/11/fbdb124338574e7c93432a0923830c89.webp)

- Category: Node.js
- Level: Apprentice
- Tags: env-file, Environment Variable (operating-system), JavaScript, nodejs, Nullish Coalescing (javascript), process.env
- Author: Gregor Dzierzon
- Updated: November 23, 2026

Source: https://www.ask-codey.com/cheat-sheets/node-environment-variables-cheat-sheet
