@charlietango/dotenv
v1.1.0
Published
Environment variable loading adapted from [@next/env](https://github.com/vercel/next.js/tree/canary/packages/next-env).
Downloads
280
Readme
@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
.envdevelopment
.env.development.local
.env.local
.env.development
.envtest
.env.test.local
.env.test
.env