pre><code class="language-javascript">var Stream = require(&quot;mithril/stream&quot;)</code></pre>
<p>You can also download the module directly if your environment does not support a bundling toolchain:</p>
<pre><code class="language-markup">&lt;script src=&quot;https://unpkg.com/mithril@next/stream/stream.js&quot;&gt;&lt;/script&gt;</code></pre>
<p>When loaded directly with a <code>&lt;script&gt;</code> tag (rather than required), the stream library will be exposed as <code>window.m.stream</code>. If <cod