title: How to use spin.js from client (Javascript, Node)
body: <p>I'm trying to use spin.js (<a href="https://spin.js.org/#" rel="nofollow noreferrer">https://spin.js.org/#</a>!) from the client but am I have some problems.<br>
  Doing</p>
  
  <pre><code>npm install spin.js
  </code></pre>
  
  <p>then </p>
  
  <pre><code>const Spinner = require('spin.js');
  </code></pre>
  
  <p>does not work as you need to browserify the module in order to use the module from the client.</p>
  
  <p>I've also tried to copy and past spin.js (<a href="https://spin.js.org/spin.js" rel="nofollow noreferrer">https://spin.js.org/spin.js</a>) and refer it from the html but it gave me an error in spin.js at</p>
  
  <pre><code>export { Spinner };
  </code></pre>
  
  <p>as</p>
  
  <pre><code>Uncaught SyntaxError: Unexpected token export
  </code></pre>
  
  <p>What is needed to use spin.js from a client?</p>