FabienHenon / env / Env

With the Env package you can parse an environment from string and keep this env in your state to toggle some features depending on your environment

Definitions


type Env
    = Dev
    | Prod
    | Test
    | QA
    | Staging

Here are the handled environments

Parse

fromString : String -> Env

Returns the environment from string (case insensitive). Returns Dev by default