-
Notifications
You must be signed in to change notification settings - Fork 53
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
[FEATURE] Env.readFile() #473
Labels
feature request
Discussion about a new feature
Comments
I've been using this in a few projects and it's been working well so far.
|
It's a nice proposal, however, will suffer from the same issue where if the value contains the delimiter you're going to get a malformed output. I think a neat approach to solving this is to actually extend
|
This was referenced Dec 26, 2021
Merged
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is there an existing issue for this?
Is your feature request related to a problem?
I currently use a utility function to read env vars from an
.env
file, however, I feel this is functionality that will be used enough that it warrants something built-in to accomplish this.Describe the solution you'd like
Maybe even the default argument is ".env"
Describe alternatives you've considered
Additional context
The above implementation is a bit naive and could do with some work, for example, if an env var value contains a
=
it's going to cause issues.The text was updated successfully, but these errors were encountered: