2.2.0 • Published 3 years ago

env-fn v2.2.0

Weekly downloads
322
License
MIT
Repository
github
Last release
3 years ago

Env-fn

Load .env configuration

Usage

require("env-fn")()

require("env-fn")(".env")
require("env-fn")("special")

Typing

require("env-rn")(fileName: string)

Searches for fileName starting from process.cwd directory and moving up.

If it finds it, it loads environment variables in the process.

Only the first request load variables; the following calls do nothing.

Default value

  • fileName - .env

Pin to different directory

Default directory is process.cwd() To apply local directory as start point use 'dirname' as argument, which is upgrade upon special behaviour.

Forbid use through env flag

If your process.env.ENV_FLAG is different than undefined or 'true', then no environment variables will be loaded with this library.

2.2.0

3 years ago

2.1.1

4 years ago

2.1.0

4 years ago

2.0.0

4 years ago

1.1.2

5 years ago

1.1.1

7 years ago

1.1.0

7 years ago

1.0.14

7 years ago

1.0.13

7 years ago

1.0.12

7 years ago

1.0.10

7 years ago

1.0.9

7 years ago

1.0.8

7 years ago

1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago