You just include this in your webpage
And after that you can use require(filename) to import your node module in the
web browser. Suppose you got a module
exports.foo = "bar";
then this html will display
Here it is a example to show, and not tell.
<script src="../dropin_require.js";></script> <script> alert( require('./foobar.js').foo ); </script>