envie/parse

Values

pub fn parse_dotenv(
  content: String,
) -> Result(List(#(String, String)), List(error.ParseError))

Parse a string in .env format into a list of #(key, value) pairs.

Lines that are empty or start with # are silently skipped. Lines that do not contain an = produce a ParseError.

Search Document