 reference the <code>bin/app.js</code> file from an HTML file:</p>
<pre><code class="lang-markup">&lt;html&gt;
  &lt;head&gt;
    &lt;title&gt;Hello world&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
    &lt;script src=&quot;bin/app.js&quot;&gt;&lt;/script&gt;
  &lt;/body&gt;
&lt;/html&gt;
</code></pre>
<p>As you&#39;ve seen above, importing a module in CommonJS is done via the <code>require</code> function. You can reference NPM modules by their library names (e.g. <code>require(&quot;mithril&quot;)</code>