# @charlietango/dotenv

Environment variable loading adapted from [@next/env](https://github.com/vercel/next.js/tree/canary/packages/next-env).

Loads multiple files depending on the environment defined in `process.env.NODE_ENV`.
The first file to contain a variable is used, allowing you to override definitions.

## Usage

Import the library in the node task that needs to load environment variables.

```ts
import '@charlietango/dotenv'
```

## Files

**production**

```sh
.env.production.local
.env.local
.env.production
.env
```

**development**

```sh
.env.development.local
.env.local
.env.development
.env
```

**test**

```sh
.env.test.local
.env.test
.env
```
