Module

Dotenv

This is the base module for the Dotenv library.

#Name

type Name = String

The type of a setting name

#Setting

type Setting = Tuple Name Value

The type of a setting

#Settings

type Settings = Array Setting

The type of settings

#Value

type Value = Maybe String

The type of a (resolved) value

#loadFile

loadFile :: Aff Settings

Loads the .env file into the environment.

#loadContents

loadContents :: String -> Aff Settings

Loads a .env-compatible string into the environment. This is useful when sourcing configuration from somewhere other than a local .env file.

Modules