@bryanwood/github-repo-stats
v2.0.0
Published
``` const { getRepoStats } = require("./index");
Downloads
4
Readme
const { getRepoStats } = require("./index");
// github credentials
let auth = {
personalAccessToken: "12345",
username: "bryanwood"
};
// repo and day to query
let options = {
since: new Date(2017, 10, 23),
until: new Date(2017, 10, 27)
repo: "repo-name",
owner: "owner-name"
};
// run query
getRepoStats(auth, options)
.then(results => {
console.log("results", results);
})
.catch(err => {
console.error(err);
});