hughsk / envify

:wrench: Selectively replace Node-style environment variables with plain strings.
901 stars 57 forks source link

Doesn't recognize process.env["string"] #20

Closed monsanto closed 9 years ago

monsanto commented 9 years ago

Example in the wild: https://github.com/petkaantonov/bluebird/blob/261b65805a71deaf37ad48b3cacb71ab7cedd97a/src/debuggability.js#L12

yoshuawuyts commented 9 years ago

Though doing process.env['some_env'] with hard coded strings is considered bad practice, this is probably something envify would want to catch nevertheless. @monsanto would you be willing to create a PR that implements this?

zertosh commented 9 years ago

Published as envify@3.4.0

mbrevda commented 8 years ago

On the 'bad practice' note, I actually have a great use case: I have a pretty large multidimensional object that I want exposed to envify. Using strings + flat allows simple and easy access to the entire object.