random-starred-repo

0.1.0 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i random-starred-repo

Weekly Downloads

0

Version

0.1.0

License

MIT

Last publish

Collaborators

  • kchan