substack/node-browserify — pull request #386 by amiuhle (2013-04-22 17:38:42+00:00)
Title: Globals

Option to add provide custom global `process` and `Buffer` implementations, currently only via `grunt-browserify`:

```javascript
browserify: {
bundle: {
src: [],
require: ['mongodb', 'tcp_wrap-chromeify'],
dest: 'app/scripts/vendor/bundle.js',
ignore: 'node_modules/browser-resolve/node_modules/buffer-browserify/index.js',
options: {
globals: {
process: 'browser-resolve/builtin/process',
Buffer: 'buffer-browserify'
}
}
}
}
```