How create static functions/objects in javascript/nodejs (ES6) : <p>I want to create a static class using Javascript/Node JS. I used google but i can't find any usefull example.</p>

<p>I want to create in Javascript ES6 something like this (C#):</p>

<pre><code>public static MyStaticClass {
   public static void someMethod() {
      //do stuff here
   }
}
</code></pre>

<p>For now, I have this class, but I think that this code will creates a new instance every time that it be called from "require".</p>

<pre><code>function MyStaticClass() {
   let someMethod = () =&gt; {
      //do some stuff
   }
}
var myInstance = new MyStaticClass();
module.exports = factory;
</code></pre>
