Created
October 31, 2019 16:22
-
-
Save ryanhanwu/b07e68f9527cc1bed6f5289c13c270d1 to your computer and use it in GitHub Desktop.
how to load environment variable from dotenv with link break?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // MY_KEY=test\ntest2\ntest3 | |
| JSON.parse(`"${process.env.MY_KEY}"`) | |
| /* | |
| test | |
| test2 | |
| test3 | |
| */ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment