Skip to content

Commit 606ab84

Browse files
committed
Merge pull request #2 from orangewise/master
Update README.md
2 parents d041e6b + 1da962d commit 606ab84

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,8 @@ Very similar to `Async.wrap(object, functionName)`,
8686
but this API can be used to wrap **multiple** instance methods of an object.
8787

8888
~~~js
89+
GithubApi = Npm.require('github');
90+
8991
var github = new GithubApi({
9092
version: "3.0.0"
9193
});
@@ -94,6 +96,6 @@ var github = new GithubApi({
9496
var wrappedGithubUser = Async.wrap(github.user, ['getFrom', 'getEmails']);
9597

9698
//usage
97-
var profile = wrappedGithubUser.getFrom('arunoda');
99+
var profile = wrappedGithubUser.getFrom({user: 'arunoda'});
98100
var emails = wrappedGithubUser.getEmails();
99101
~~~

0 commit comments

Comments
 (0)