Created
January 16, 2015 19:26
-
-
Save bttmly/c3a1c20fbfee04ddeb9c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var Bluebird = require("bluebird"); | |
var nba = require("nba"); | |
Object.keys(nba.api).forEach(function (method) { | |
var original = nba.api[method]; | |
nba.api[method] = Promise.promisify(original); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment