package luv

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
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) list, Error.t) Result.result

Retrieves all environment variables.

Binds uv_os_environ. See environ(3p).

OCaml

Innovation. Community. Security.