1.1.9 • Published 1 year ago

github-data-cat v1.1.9

Weekly downloads
1
License
Apache 2.0
Repository
github
Last release
1 year ago

description

data-cat is a module for fetcher the graphql data from github, with the structural data as return.

demo

import { DataCat } from "data-cat"

async function test_data_cat() {
  let data_cat = new DataCat({
    tokens: ["xxx", "xxx"],
  });
  await data_cat.init();

  let repos = await data_cat.org.repos('X-lab2017');
  return repos;
}

console.log(test_data_cat());

docs

org{
  repos: (login: string, updatedAfter?: Date) => Promise<Repo[]>
};
repo{
  info: (owner: string, name: string) => Promise<Repo>;
  stars: (owner: string, name: string, updatedAfter?: Date) => Promise<UserWithTimeStamp[]>;
  forks: (owner: string, name: string, updatedAfter?: Date) => Promise<UserWithTimeStamp[]>;
  issues: (owner: string, name: string, updatedAfter?: Date) => Promise<Issue[]>;
  pulls: (owner: string, name: string, updatedAfter?: Date) => Promise<PullRequest[]>;
  contributors: (owner: string, name: string, branch: string, commitLimit?: number) => Promise<UserWithTimeStampAndEmail[]>;
  full: (owner: string, name: string, param?: RepoFullParam, updatedAfter?: Date) => Promise<Repo>;
};
user{
  info: (login: string) => Promise<User>;
  following: (login: string) => Promise<UserFollower[]>;
  follower: (login: string) => Promise<UserFollower[]>;
}
1.1.9

1 year ago

1.1.8

1 year ago

1.1.7

1 year ago

1.1.6

1 year ago

1.1.5

1 year ago

1.1.4

2 years ago

1.1.3

2 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.1.2

3 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago