> For the complete documentation index, see [llms.txt](https://openai.gitbook.io/code-cheatsheets/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://openai.gitbook.io/code-cheatsheets/js/all/node/env.md).

# Env

See packages/dotenv

Node.js 20 adds support for .env. files

```bash
node --env-file=.env app.js
```

then in code

```js
process.env.PORT; // "3000"
```
