Skip to content

tyizo/github-scapper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

6 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Github Scapper

get info about any user/repository you want!

Installation :

  • By Npm : npm i tyizo-github-scapper
  • By Yarn : yarn add tyizo-github-scapper

Example:

const { Github } = require("tyizo-github-scapper");
const github = new Github();
// get user's info
github.getUser("tyizo").then((user) => {
  console.log(user);
});
// get user's repo info
github.getRepo("facebook", "react").then((repo) => {
  console.log(repo);
});
  • For more examples go to examples file.

Methods:

  • getUser(): For getting user's info such as company, followers etc .. Take one args and it's username, must be a string.

  • getRepo(): For getting user's repository info any repo you want. Take two args and it's username and repository name, must be a string too.

Responses:

  • For Username:
interface User {
  name: string;
  company: string;
  location: string;
  twitterUsername: string;
  repos: number;
  followers: number;
  following: number;
  createdAt: Date;
  lastUpdate: Date;
  avatarURL: URL;
  bio: string;
  website: URL;
}
  • For Repository:
interface Repository {
  name: string;
  description: string;
  owner: string;
  private: boolean;
  repoURL: URL;
  stars: number;
  forks: number;
  homepage: URL;
  language: string;
  createdAt: Date;
  lastUpdate: Date;
}

License:

Made By Tyizo, under MIT license.

About

๐Ÿ˜‹ Get info about any user/repo you want!

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published