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