@karmaniverous/get-dotenv
    Preparing search index...

    Function writeDotenvFile

    • Serialize a dotenv record to a file with minimal quoting (multiline values are quoted). Future-proofs for ordering/sorting changes (currently insertion order).

      Parameters

      • filename: string

        Destination dotenv file path.

      • data: Record<string, string | undefined>

        Env-like map of values to write (values may be undefined).

      Returns Promise<void>

      A Promise\<void\> which resolves when the file has been written.