package dotenv

  1. Overview
  2. Docs
Javascript's dotenv port to OCaml

Install

dune-project
 Dependency

Authors

Maintainers

Sources

dotenv-v0.0.3.tbz
sha256=b8b0745746db0b8c6dd6bff9de8b89512c657cc5e0d09f9ba29aa5561a07c517
sha512=de509d75d633ae992bca34bca6a2cf5e49368ba6b4a2ce58c377cd3661cd796ad3b9c3cc341ac827f76b3915495943019e79a90454d8da97f166e25c861da81c

doc/dotenv/Dotenv/index.html

Module DotenvSource

Sourceval parse : ?debug:bool -> ?path:string -> ?encoding:[< Uutf.decoder_encoding ] -> unit -> (string, string) Base.List.Assoc.t

parse ~debug ~path ~encoding () reads the env file on the path with the defined encoding and returns an association list with pairs of var names and values. For the encoding Uutf decoder encodings can be used: `UTF_16 | `UTF_16BE | `UTF_16LE | `UTF_8 | `US_ASCII | `ISO_8859_1 .

Sourceval export : ?debug:bool -> ?path:string -> ?encoding:[< Uutf.decoder_encoding ] -> unit -> unit

export ~debug ~path ~encoding () reads the env file on the path with the defined encoding and adds the read variables onto the environment. They will then be available under Sys.get_env For the encoding Uutf decoder encodings can be used: `UTF_16 | `UTF_16BE | `UTF_16LE | `UTF_8 | `US_ASCII | `ISO_8859_1 .