random-starred-repo
Return a random repo from the ones starred by you.
Last updated 4 years ago by kchan .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install random-starred-repo 
SYNC missed versions from official npm registry.

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

Current Tags

  • 0.1.0                                ...           latest (4 years ago)

1 Versions

  • 0.1.0                                ...           4 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 1
Last Day 0
Last Week 0
Last Month 0
Dependencies (2)
Dev Dependencies (2)
Dependents (1)

Copyright 2014 - 2016 © taobao.org |