c5-github-repos-search
v0.0.1
Published
Testin package to see repos by user
Downloads
2
Readme
c5-github-repos-search
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 c5-github-repos-search
# using yarn
yarn add c5-github-repos-search
Usage
# using require
const { getRepos } = require('c5-github-repos-search');
# using import
import { getRepos } from 'c5-github-repos-search';
Example
Using promises:
getRepos({
username: "c5m7b4", // 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: "c5m7b4", // 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();