Module

Env.Dot

Package
purescript-env
Repository
m-rinaldi/purescript-env

The .env half: a file of KEY=value lines folded into the process environment, for development. A variable the environment already has keeps its value, so a deployment's own environment always wins, and no file is no error.

Node does the loading (process.loadEnvFile, through node-process), so there is no parser here: the format is what Node accepts, # comments and quoted values included, ${VAR} expansion not.

#environment Source

environment :: Effect (Object String)

The process environment after the .env file in the working directory was folded into it.

#environmentFrom Source

environmentFrom :: String -> Effect (Object String)

Like environment, with the file named. A file that is not there is no error; one that cannot be read (a directory, no permission) is thrown.