load-env alternatives and similar packages
Based on the "Configuration" category.
Alternatively, view load-env alternatives based on common mentions on social networks and blogs.
-
typeparams
Lens-like interface for type level parameters; allows unboxed unboxed vectors and supercompilation -
aws-mfa-credentials
Keep your AWS credentials file up to date with MFA-carrying temporary credentials
SaaSHub - Software Alternatives and Reviews
Do you think we are missing an alternative of load-env or a related project?
README
load-env
This is effectively a port of dotenv, whose README explains it best:
Storing configuration in the environment is one of the tenets of a twelve-factor app. Anything that is likely to change between deployment environments–such as resource handles for databases or credentials for external services–should be extracted from the code into environment variables.
But it is not always practical to set environment variables on development machines or continuous integration servers where multiple projects are run. dotenv loads variables from a .env file into ENV when the environment is bootstrapped.
This library exposes functions for doing just that.
Usage
import LoadEnv
import System.Environment (lookupEnv)
main :: IO ()
main = do
loadEnv
print =<< lookupEnv "FOO"
% cat .env
FOO=bar
% runhaskell main.hs
Just "bar"
Development & Test
stack setup
stack build --pedantic --test
[CHANGELOG](./CHANGELOG.md) | [LICENSE](./LICENSE)
*Note that all licence references and agreements mentioned in the load-env README section above
are relevant to that project's source code only.