Skip to content

Get a list of Github repositories of specified username sorted by numbers of stars in descending order and last updated time

License

Notifications You must be signed in to change notification settings

shrysjain/githubreposearch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

githubreposearch

Get a list of Github repositories of specified username sorted by numbers of stars in descending order and last updated time

Installation

// Using NPM
npm install githubreposearch

// Using Yarn
yarn add githubreposearch

Usage

// Using Require
const { getRepos } = require('githubreposearch');

// Using Import
import { getRepos } from 'githubreposearch';

Example

Using promises:

getRepos({
  username: 'LilJuiceBox491', // provide GitHub username here
  page: 1, // optional property: default value is 1
  per_page: 50 // optional property: default value is 50
}).then((repositories) => console.log(repositories));

Using async/await:

const getRepositories = async function () {
  const repositories = await getRepos({
    username: 'LilJuiceBox491', // provide GitHub username here
    page: 1, // optional property: default value is 1
    per_page: 50 // optional property: default value is 50
  });
  console.log(repositories);
};

getRepositories();

About

Get a list of Github repositories of specified username sorted by numbers of stars in descending order and last updated time

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published