title: npm modules in Firefox-Addon content scripts
body: <p>With <a href="https://www.npmjs.com/package/jpm" rel="nofollow">jpm</a>, one now (from Firefox 38 on) has the possibility to use npm modules in Firefox Add-ons, cf. <a href="https://developer.mozilla.org/en-US/Add-ons/SDK/Tutorials/Using_third-.party_modules_(jpm)" rel="nofollow">the documentation on MDN</a>.
  This appears to be restricted to the main entry file (<code>index.js</code> by default), especially since <a href="https://stackoverflow.com/questions/24412124/referenceerror-require-is-not-defined"><code>require()</code> isn't defined in content scripts</a>.</p>
  
  <p>Is there any way of using npm modules in content scripts for Firefox-Addons?</p>