dotenv
(require dotenv) | package: dotenv |
A library that allows for reading .env files instead of environment variables
1 Usage Examples
(require dotenv) (dotenv-load!)
(require dotenv) (dotenv-load! "raccoon.env" "possum.env")
NOTE: This calling convention is deprecated; use rest arguments, instead.
(require dotenv) (dotenv-load! '("raccoon.env" "possum.env"))
(require dotenv) (define other-env (dotenv-read "raccoon.env" "possum.env"))
NOTE: This calling convention is deprecated; use rest arguments, instead.
(require dotenv) (define other-env (dotenv-read '("raccoon.env" "possum.env")))
2 API
procedure
(dotenv-load! filename ...) → (listof boolean?)
filename : path-string?
Changed in version 1.2 of package dotenv: Can now use path-string? rest arguments.
Changed in version 1.2 of package dotenv: Calling with a list argument is deprecated.
procedure
(dotenv-read filename ...) → environment-variables?
filename : path-string?
Added in version 1.1 of package dotenv.
Changed in version 1.2 of package dotenv: Can now use path-string? rest arguments.
Changed in version 1.2 of package dotenv: Calling with a list argument is deprecated.
Changed in version 1.2 of package dotenv: Now behaves like dotenv-load! and attempts to read .env when no arguments are given.