1.1.0 • Published 3 months ago

@charlietango/dotenv v1.1.0

Weekly downloads
-
License
MIT
Repository
-
Last release
3 months ago

@charlietango/dotenv

Environment variable loading adapted from @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.

import '@charlietango/dotenv'

Files

production

.env.production.local
.env.local
.env.production
.env

development

.env.development.local
.env.local
.env.development
.env

test

.env.test.local
.env.test
.env