package luv

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
val getenv : string -> (string, Error.t) Stdlib.result

Retrieves the value of an environment variable.

Binds uv_os_getenv. See getenv(3p).

Requires libuv 1.12.0.

Feature check: Luv.Require.(has os_getenv)

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

Sets an environment variable.

Binds uv_os_setenv. See setenv(3p).

Requires libuv 1.12.0.

Feature check: Luv.Require.(has os_getenv)

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

Unsets an environment variable.

Binds uv_os_unsetenv. See unsetenv(3p).

Requires libuv 1.12.0.

Feature check: Luv.Require.(has os_getenv)

val environ : unit -> ((string * string) list, Error.t) Stdlib.result

Retrieves all environment variables.

Binds uv_os_environ. See environ(3p).

Requires libuv 1.31.0.

Feature check: Luv.Require.(has os_environ)

OCaml

Innovation. Community. Security.