2.2.5 • Published 2 months ago

@code-like-a-carpenter/dotenv v2.2.5

Weekly downloads
-
License
MIT
Repository
github
Last release
2 months ago

@code-like-a-carpenter/dotenv

standard-readme compliant

Wrapper around dotenv the loads the right .env file(s) based on the NODE_ENV

Table of Contents

Install

npm i @code-like-a-carpenter/dotenv

Usage

This package uses the dotenv package under the hood, but, depending on NODE_ENV, will load more files than just the default .env.

Each of the following files will be loaded if they exist, in the following order. Files loaded earlier take precedence.

  • .env.<env>.local
  • .env.local
  • .env.<env>
  • .env

There are only three valid values for <env>, based on the value of NODE_ENV:

NODE_ENV<env>
productionproduction
testtest
anything elsedevelopment

Please add the following to your gitignore. local env files are intended for customizing the environment on your local machine and should not be checked into git.

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

Even though you may check env files into git, you still shouldn't check in secrets.

Maintainer

Ian Remmel

Contributing

Please see contributing guidelines at the project homepage.

License

MIT © Ian Remmel 2023 until at least now

2.2.5

2 months ago

2.2.4

2 months ago

2.2.3

2 months ago

2.2.2

2 months ago

2.2.1

3 months ago

2.2.0

3 months ago

2.1.0

3 months ago

2.0.0

4 months ago

1.0.3

9 months ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago