mrt:github

v0.1.8Published 10 years ago

This package has not had recent updates. Please investigate it's current state before committing to using it in your project.

meteor-github

This is a version of Mike de Boer's excellent node-github npm module, repackaged for Meteor.

Example Usage

You can use it in exactly the same way you would use the original package (example adapted from its GitHub page):

1var GitHub = require("github");
2
3var github = new GitHub({
4    version: "3.0.0", // required
5    timeout: 5000     // optional
6});
7
8github.user.getFollowingFromUser({
9    user: "ndhoule"
10}, function(err, res) {
11    console.log(JSON.stringify(res));
12});

Because Meteor follows a synchronous programming model, this package allows you to skip out on the callback if you prefer:

1var result = github.user.getFollowingFromUser({
2    user: "ndhoule"
3});
4
5console.log(JSON.stringify(result));

How to Get It

You can install this package through Atmosphere using meteorite by running mrt add github.

Feedback

This is my first Meteor package; while there's not much to it, but I'm sure there's room for improvement. If you like it and want to help make it better, file an issue, submit a pull request, or drop me an email. Thanks!