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

    Function formatDotenvRecord

    • Serialize a dotenv record to text: one KEY=value line per key, in insertion order, with undefined written as an empty value. Each value is quoted and escaped as needed (the rules of the dotenv file-editing API, editDotenvFile: formatDotenvValue) so that get-dotenv (dotenv's parse, then its expander) reads the text back to the same record: a $ the expander would act on is written \$.

      Parameters

      • data: ProcessEnv

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

      Returns string

      The dotenv text.

      Error when a value can't be written so that dotenv reads it back unchanged (the message names the key).