title: how to require classes in nodejs
body: <p>I was writing a project with Nodejs, and I using the ES6. I wrote a class named <code>Products</code> in <code>Products.js</code> file :</p>
  
  <pre><code>class Products
  {
  ...
  }
  </code></pre>
  
  <p>For import this class to another file (like <code>index.js</code>), I use <code>requre('Products.js');</code> and this error displayed : </p>
  
  <blockquote>
    <p>Error: Cannot find module 'Products.js'</p>
  </blockquote>
  
  <p>How to I require this class in index.js?</p>