@bryanwood/github-repo-stats

2.0.0 • Public • Published
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);
  });

Readme

Keywords

none

Package Sidebar

Install

npm i @bryanwood/github-repo-stats

Weekly Downloads

3

Version

2.0.0

License

ISC

Last publish

Collaborators

  • bryanwood