title: how to read exported environment variables in typescript
body: <p>I have some environment variables exported in the terminal like<code>export my_server_port=1234</code></p>
  
  <p>I want to read the environment variable <code>my_server_port</code> from my TypeScript code.</p>
  
  <p>I tried reading it using the following code,  but that doesn't seem to return anything:</p>
  
  <pre><code>let my_req = process.env.my_server_port;
  </code></pre>
  
  <p>I would like to know how can I retrieve the exported value for <code>my_server_port</code> in TypeScript?</p>