Popularity
6.9
Growing
Activity
0.0
Declining
19
5
3

Monthly Downloads: 45
Programming language: Haskell
License: BSD 3-clause "New" or "Revised" License
Tags: Configuration    
Latest version: v0.2.1.0

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.

Do you think we are missing an alternative of load-env or a related project?

Add another 'Configuration' Package

README

load-env

Build Status

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.