title: Using NPM package in the browser with Browserify
body: <p>I'm trying to use Browserify so that I can use an npm package in the browser. The package I'm trying to use is <a href="https://www.npmjs.com/package/fcs" rel="nofollow">this</a></p>
  
  <p>I have a fcs.js file:</p>
  
  <pre><code>// Use a Node.js core library
  var FCS = require('fcs');
  
  // What our module will return when require'd
  module.exports = function(FCS) {
    return FCS;
  };
  </code></pre>
  
  <p>And an index.js file:</p>
  
  <pre><code>var FCS = require('./fcs.js');
  
  console.log('FCS IS ');
  console.log(FCS);
  </code></pre>
  
  <p>I then ran:</p>
  
  <pre><code>browserify index.js &gt; bundle.js
  </code></pre>
  
  <p>And created an index.html file:</p>
  
  <pre><code>&lt;html&gt;
  &lt;script src="bundle.js"&gt;&lt;/script&gt;
  &lt;script&gt;
      var fcs = new FCS();
  
  &lt;/script&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>But I end up with the error:</p>
  
  <pre><code>Uncaught ReferenceError: FCS is not defined
  </code></pre>
  
  <p>Maybe I'm not grasping the concept correctly. How can i use this package in the browser? Thanks. </p>