6.0.0 • Published 10 years ago

github_simplestat v6.0.0

Weekly downloads
-
License
ISC
Repository
-
Last release
10 years ago

#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!

6.0.0

10 years ago

5.1.0

10 years ago

5.0.0

10 years ago

4.0.0

10 years ago

3.0.0

10 years ago

2.0.0

10 years ago

1.1.1

10 years ago

1.1.0

10 years ago

0.0.0

10 years ago

1.0.0

10 years ago