substack/node-browserify — Issue #115: Switch module for browser
Author: agentcooper
Created: 2012-02-06 17:30:24+00:00
State: open

So I have some code using [```request```](https://github.com/mikeal/request) module, for example

```javascript
var request = require('request');
request('http://www.google.com', function (error, response, body) {
if (!error && response.statusCode == 200) {
console.log(body) // Print the google web page.
}
})
```

And I can't use browserify on this code right away, because ```request``` requires ```crypto``` module. Can I somehow supply my own file with the ```request``` module, where it relies on ```xmlhttprequest``` to the browserify cli? Thanks.