danday74 / envsub

NPM - envsub is envsubst for Node.js
Other
62 stars 10 forks source link

Quotes for .env file values are included in interpolation #10

Closed ajcrites closed 4 years ago

ajcrites commented 5 years ago

If you have a .env file like this:

NAME="Value"

running envsub --env-file .env results in a substitution of ${NAME} for "Value".

However, running NAME="Value" envsub results in Value (not wrapped in quotes).

I think that quotes should be ignored when setting values from a key=value file as you might expect when sourcing the file in a shell environment.

danday74 commented 4 years ago

Given the increase in downloads on this module I am planning to be more active - will investigate this issue and get back to you

danday74 commented 4 years ago

This is fixed in 4.0.2 - closing