title: Javascript library uses require() but I don't have or use nodeJS?
body: <p>I've encountered several JavaScript projects and libraries that use this require() function, in order to include other files, like this:</p>
  
  <pre><code>require('somefile')
  </code></pre>
  
  <p>I never heard of that, and apparently it's something of node.js, which I don't have and don't use. </p>
  
  <p>I just intend to use these JavaScript libraries in my own websites, but I'm seeing all sorts of instructions involving "npm" (whatever that may be). Then there is supposedly a replacement for that called <a href="http://requirejs.org/" rel="noreferrer">required.js</a>, but that seems to use a different syntax, like forcing to use require([...]) or something whereas the projects I need to include just do require(...). </p>
  
  <p>What is the easiest way to deal with this require(...) stuff when using JavaScript projects in regular html5 websites? (i.e. all supposed to run client side)</p>
  
  <hr>
  
  <p>Addition: I already tried require.js, but it doesn't seem to work. For example, the first line in somelibrary.js is this:</p>
  
  <pre><code>var assert = require('assert')
  </code></pre>
  
  <p>when I previously included require.js, and then somelibrary.js, I'm getting this error:</p>
  
  <blockquote>
    <p>Uncaught exception: Error: Module name "assert" has not been loaded
    yet for context: _. Use require([])</p>
  </blockquote>
  
  <p>And this happens with anything that contains require() </p>
  
  <hr>
  
  <p>Another addition: I noticed people mentioning 'browserify'. And some of the js projects I'm trying to include also recommend this. Apparently this is supposed to generate one single ready to use .js file that I can Include. But </p>
  
  <ol>
  <li><p>Why don't they just publish this browserified .js directly? Is there a reason why I need to compile it myself? it's supposed to be something universal for all browsers or websites, right?</p></li>
  <li><p>This browserify thing, which is apparently to avoid node.js, actually seems to require node.js itself (the instructions all mention "npm -g install browserify" etc)</p></li>
  </ol>