dwyl/env2

Why does this beat a .env file?

Closed this issue · 5 comments

rjmk commented

Is it because it's more node-y / self-contained than a bash-y .env?

Go on...

rjmk commented

Well the main way I've seen of managing environment variables is with a .env file and maybe a porduction.env file. In them, the environment variables are just listed out as

A_VARIABLE=xyz
...

A simple way to run this is with some of the Heroku command line tools (but this is not very self-contained) but the fact that it's almost a sequence of shell commands means it would be simple to write a script to turn it into one. However, I suppose that's not necessary for a node app.

@rjmk we could easily support a .env file.
in fact I prefer it to a .json file.
Do you have time to write a PR?

Possible sources of inspiration:

Differentiator: ours will have 100% test coverage (aka reliability).

rjmk commented

Sorted!