title: .env vs config.json
body: <p>I just started learning <code>JavaScript</code> / <code>node.js</code> (a gentle introduction to back-end webdev), and thus I am completely green in the subject.</p>
  
  <p>A few days ago I was reading a tutorial from which I learned to keep my confidential data (like passwords) in a <code>config.json</code> file.</p>
  
  <p>Today I have discovered (by a chance) <code>.env</code> file, and the more I learn about it, it seems, the more people are using it to actually store passwords.</p>
  
  <p>So when should I use <code>.env</code> and when should I use <code>config.json</code>?</p>