Skip to content

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

Notifications You must be signed in to change notification settings

ditikrushna/github-repos-search

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

5 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

github repos searchh

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 github-repos-searchh

# using yarn
yarn add github-repos-searchh

Usage

# using require
const { getRepos } = require('github-repos-searchh');

# using import
import { getRepos } from 'github-repos-searchh';

Example

Using promises:

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

Using async/await:

const getRepositories = async function () {
  const repositories = await getRepos({
    username: 'ditikrushna', // provide GitHub username here
    page: 1, // optional property: default value is 1
    per_page: 50 // optional property: default value is 30
  });
  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 πŸš€

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published