A dotenv-compatible .env parser.
.env
Follows the documented semantics of the dotenv package so envjoy treats files exactly the way your app's loader will:
dotenv
KEY=value
export
\n
\r
#
The parser is intentionally dependency-free and lossless about which keys exist and whether their value is empty — that is all envjoy needs.
Whether the value resolved to an empty string.
The variable name.
1-based line number where the key was defined.
The parsed value (may be an empty string).
A dotenv-compatible
.envparser.Follows the documented semantics of the
dotenvpackage so envjoy treats files exactly the way your app's loader will:KEY=valuepairs, optionalexportprefix.\nand\rescape sequences.#comments are ignored (a#inside a quoted value is literal; an unquoted inline#starts a comment).The parser is intentionally dependency-free and lossless about which keys exist and whether their value is empty — that is all envjoy needs.