title: How to use an .ENV file with a website
body: <p>I've made a few node.js bots and web applications that have used .env variables along with the <a href="https://www.npmjs.com/package/dotenv" rel="nofollow noreferrer">dotenv package</a> to hold all of the API keys. </p>
  
  <p>However, Im currently working on a website that uses node.js with browserify and this method doesn't seem to work. Whenever I try to output the value to the console or use the value in the code it returns undefined. </p>
  
  <p><strong><em>How would I fix this, or if .env's simply don't work on the web, how would I hide these values?</em></strong> </p>
  
  <p>my .env example</p>
  
  <pre><code>ID = B1CRL2WDIW2553
  SECRET = 41445d2b99b33ede3ebce0421900b8e9
  </code></pre>
  
  <p>my js example </p>
  
  <pre><code>const dotEnv = require('dotenv').config({path: './.env'});
  console.log(process.env.ID);
  </code></pre>
  
  <p>example of the return statement
  <a href="https://i.stack.imgur.com/KBuoZ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/KBuoZ.png" alt="enter image description here"></a></p>