envjoy - v0.1.0
    Preparing search index...

    Interface ParsedEntry

    A dotenv-compatible .env parser.

    Follows the documented semantics of the dotenv package so envjoy treats files exactly the way your app's loader will:

    • KEY=value pairs, optional export prefix.
    • Whitespace around the key and around unquoted values is trimmed.
    • Single- and double-quoted values preserve inner whitespace; double quotes expand \n and \r escape sequences.
    • Triple/-multiline quoted values are supported (value spans lines until the matching closing quote).
    • Full-line and inline # comments are ignored (a # inside a quoted value is literal; an unquoted inline # starts a comment).
    • Blank lines are ignored.

    The parser is intentionally dependency-free and lossless about which keys exist and whether their value is empty — that is all envjoy needs.

    interface ParsedEntry {
        isEmpty: boolean;
        key: string;
        line: number;
        value: string;
    }
    Index
    isEmpty: boolean

    Whether the value resolved to an empty string.

    key: string

    The variable name.

    line: number

    1-based line number where the key was defined.

    value: string

    The parsed value (may be an empty string).