Skip to content

egoist/random-starred-repo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

random-starred-repo

NPM version NPM downloads Build Status

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

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

License

MIT © EGOIST

About

Return a random repo from the ones starred by you.

Resources

License

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published