browsermodules
a very slim wrapper which allows you to structure your code like node.js modules. they will be combined to a single file which can be consumed by browsers.
build status
usage
cli
browserModules --in index.js --out combined.js
Options:
-i, --in input file [required]
-o, --out output file [required]
-e, --eval use sourceURL feature
module
var browsermodules =;
tradeoffs
you can use
module
exports
but there is no support for:
__filename
__dirname
- node internals like
process
andBuffer