scottgonzalez/node-browserstack — pull request #5 by daffl (2012-10-24 22:03:54+00:00)
Title: Allow to pass default request options

Hi Scott.

We are creating a [NodeJS browser launcher](https://github.com/ekryski/launchpad) that can run a Browserstack API compatible server for launching browsers on a remote system.

I would like to use the node-browserstack package to test compatibility but the request options were hardcoded. I added a `defaults` key to the settings so it is possible to do something like this:

BrowserStack.createClient({
username : '',
password : '',
defaults : {
port : 8080,
host : 'localhost'
}
});

I already bumped the version, would be great if this is an acceptable patch.

David