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 \$.
Serialize a dotenv record to text: one
KEY=valueline per key, in insertion order, withundefinedwritten 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'sparse, then its expander) reads the text back to the same record: a$the expander would act on is written\$.