title: Parse string from environment variable in JavaScript
body: <p>I have a API key stored in the <code>.env</code> file (this has a structure of <code>NAME=key</code>. The key in question is a Firebase private key which has a multiline format, something like this:</p>
  
  <pre><code>"private_key": "-----BEGIN PRIVATE KEY-----\randomletters\nrandomletters\n-----END PRIVATE KEY-----\n"
  </code></pre>
  
  <p>It's originally saved in a JSON file but I needed to store it in a .env file to include it in a Glitch project. I enclosed it in <code>""</code>but when I try to import it in my Node module using <code>process.env.NAME</code> it looks like a string but without formatting (no new line, instead <code>\n</code> is printed) and when I submit it to Firebase it is not accepted.</p>
  
  <p>How can I transform that long unformatted String into a multiline String in JavaScript?</p>