@charlietango/dotenv
TypeScript icon, indicating that this package has built-in type declarations

1.1.0 • Public • Published

@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

Readme

Keywords

none

Package Sidebar

Install

npm i @charlietango/dotenv

Weekly Downloads

32

Version

1.1.0

License

MIT

Unpacked Size

8.31 kB

Total Files

8

Last publish

Collaborators

  • thebuilder
  • frederik_bosch