random-starred-repo
Return a random repo from the ones starred by you.
Install
$ npm install --save random-starred-repo
Usage
const random = require('random-starred-repo')
random('egoist')
.then(repo => {
console.log(repo)
//=> {name: 'react', id: ..., owner: ...}
})
API
randomStarredRepo(username, [access_token)
username
Type: string
GitHub username
access_token
Type: string
GitHub private token.
Contributing
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D