title: How do I bundle a JavaScript module with npm dependencies to have 0 dependencies
body: <p>I have a module <code>module.js</code> which itself has dependencies.  Some dependencies are local via <code>require('./relative/import/path.js')</code> while other dependencies are from npm via <code>require('npm/import/path.js')</code>.</p>
  
  <p>My module has it's own exports via <code>module.exports = { myfunc: myfunc }</code>.  Other JavaScript files need to <code>require('./path/to/modules.js')</code> so they can use myfunc.</p>
  
  <p>How can I bundle together all the dependencies and ship my module as a stand-alone thing?</p>
  
  <p>note: Browserify fails to allow me to export myfunc.</p>