TickX/var-to-dotenv

.env variables not wrapped into doublequotes

Opened this issue · 0 comments

inlo commented

It seems like there are doublequtes on the Value side missing. Therefore special characters are getting interpreted and cut off the actual content.

This looks like an easy fix to wrap the Value with doublequotes to avoid special character interpretation

.env KEY1=ABC KEY2=EFG KEY3=HIJ#KLM

debug> require("dotenv").config(); { parsed: { KEY1: 'ABC', KEY2: 'EFG', KEY3: 'HIJ' } }