Skip to content

Instantly share code, notes, and snippets.

@ryanhanwu
Created October 31, 2019 16:22
Show Gist options
  • Select an option

  • Save ryanhanwu/b07e68f9527cc1bed6f5289c13c270d1 to your computer and use it in GitHub Desktop.

Select an option

Save ryanhanwu/b07e68f9527cc1bed6f5289c13c270d1 to your computer and use it in GitHub Desktop.
how to load environment variable from dotenv with link break?
// 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