gh-star-repos
v0.0.4
Published
Github user repo by star
Downloads
2
Readme
gh-star-repos
:octocat: Github user repo by star
Install
$ npm install gh-star-repos
Usage
const ghStarRepos = require('gh-star-repos');
ghStarRepos('progrmoiz').then(repos => {
repos.forEach(repo => {
// repo object: https://api.github.com/users/:user/repos single item
console.log(repo.name, repo.stargazers_count);
});
// python-snippets 172
// simple-blockchain-implementation 3
// wiki-viewer 2
// knockoutjs-twitch-status 2
// more item...
});
API
ghStarRepos(username, [opts])
username
Type: string
opts
token
Type: string
Default: ''
order
Type: string
Posible Values: 'DESC'|'ASC'
Default: 'DESC'
License
MIT © Moiz