包详细信息

github_simplestat

jackrometty5ISC6.0.0

valid_data(name, auth_file_location, callback) pass in user name (example "jackrometty") to see how many commits they've pushed. can pass in an auth file or go without it. rate limit without auth is 60/min and with is 5000/min.

自述文件

github_simplestat

valid_data(name, auth_file_location, callback)

pass in user name (example "jackrometty") to see how many commits they've pushed. can pass in an auth file or go without it. rate limit without auth is 60/min and with is 5000/min.

example usage:

auth.txt (in same level of folder)

    23jkh5k4jh213... (client key)
    245h45kjhl2k3... (client secret)

app.js

var gh = require('github_simplestat');

// with auth
gh.valid_data('jackrometty', 'auth.txt' function(data) {
    console.log(data);
});

// without auth
gh.valid_data('jackrometty', null function(data) {
    console.log(data);
});

both print something like this to console

{
    "today": 5,
    "thisweek": 11
}

yes this is crazy simple and small, and that's because this is also a learning project. if you have any advice let me know!