This is a very simple transform that turns this:
module.exports = myCoolModuleName = function () {
...
}
Into this:
var myCoolModuleName
module.exports = myCoolModuleName = function () {
...
}
npm install declareify
browserify ... -t declareify
Or:
// package.json
...
browserify: {
transform: [ 'declareify' ]
}
...
Please feel free to open an issue or a PR if something's broken, or if you'd like some specific features added.
MIT