FabienHenon/env/1.0.0

Formerly calions-app/env. Search finds this package by either name.

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