Module Luv.Env

val getenv : string -> (string, Error.t) Result.result

Retrieves the value of an environment variable.

Binds uv_os_getenv. See getenv(3p).

val setenv : string -> value:string -> (unit, Error.t) Result.result

Sets an environment variable.

Binds uv_os_setenv. See setenv(3p).

val unsetenv : string -> (unit, Error.t) Result.result

Unsets an environment variable.

Binds uv_os_unsetenv. See unsetenv(3p).

val environ : unit -> ((string * string) listError.t) Result.result

Retrieves all environment variables.

Binds uv_os_environ. See environ(3p).