add support for `require("riak-js")()` to initialize a client #203

merged 1 commit into from Dec 25, 2013


None yet
3 participants

tj commented Dec 22, 2013

pretty common pattern these days:

var riak = require('riakj-js');
var db = riak({ host: 'n.n.n.n' });

leaves .getClient() and the others as-is


sideshowcoder commented Dec 22, 2013

I really like this, thanks 👍

roidrage added a commit that referenced this pull request Dec 25, 2013

Merge pull request #203 from visionmedia/refactor-getClient
add support for `require("riak-js")()` to initialize a client

@roidrage roidrage merged commit 01ce6e6 into mostlyserious:master Dec 25, 2013

1 check passed

default The Travis CI build passed

@tj tj deleted the tj:refactor-getClient branch Dec 25, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment