Module

Dotenv

Package
purescript-dotenv
Repository
nsaunders/purescript-dotenv

This is the base module for the Dotenv library.

#Name Source

type Name = String

The type of a setting name

#Setting Source

type Setting = Tuple Name Value

The type of a setting

#Settings Source

type Settings = Array Setting

The type of settings

#Value Source

type Value = Maybe String

The type of a (resolved) value

#loadFile Source

loadFile :: Aff Settings

Loads the .env file into the environment.

#loadContents Source

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.