How to load .env variables in my zx script? #792
|
let's say I have a .env file in my project root and I want to get my environment variables. |
Answered by
antongolub
May 5, 2024
Replies: 2 comments 5 replies
|
zx uses |
4 replies
Answer selected by
codenoobforreal
|
Node now has support for |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
zx uses
process.envobject by reference, so you are able to modify this value in any convenient way. For example, with dotenv.