Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Built-in shortcut for loading into process.env #6

Open
sholladay opened this issue Jul 20, 2020 · 0 comments
Open

Built-in shortcut for loading into process.env #6

sholladay opened this issue Jul 20, 2020 · 0 comments

Comments

@sholladay
Copy link
Owner

The recipe for loading the environment variables into process.env is pretty simple, but it's nonetheless more cumbersome than it ought to be. We should include this feature as an optional part of our API.

My thought is something like:

envy.assign('.env', process.env);

Or, given that #5 will be implemented, perhaps:

envy.assign({ target : process.env });

Not sure about the names assign and target here. Suggestions for other names welcome.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant