bevry / envfile

Parse and write environment files with Node.js
Other
61 stars 10 forks source link

normalize quotes for values in .env #194

Closed kcarra closed 2 years ago

kcarra commented 2 years ago

In the case that the values of a .env file contain strings:

FOO="BAR"
BAZ='BAX'

it would be nice to normalize the values before returning them when calling the parse function. Currently if a .env file has values that contain quotes (single or double) the quotes are preserved when setting the value on the result object, leading to situations like this {FOO: '"BAR"'}.

kcarra commented 2 years ago

@balupton what are your thoughts on this?

balupton commented 2 years ago

@kcarra added you as a maintainer, feel free to what you think is best. Make sure to follow the instructions in CONTRIBUTING.md for the release/CI process, which is powered by https://github.com/bevry/boundation

balupton commented 2 years ago

good work with the release, all done perfectly