github-is-starred
Checks if a user has starred a particular GitHub repo.
Last updated 19 days ago by fisch0920 .
MIT · Repository · Original npm · Tarball · package.json
$ cnpm install github-is-starred 
SYNC missed versions from official npm registry.

github-is-starred

Checks if a user has starred a particular GitHub repo.

NPM Build Status JavaScript Style Guide

Install

npm install --save github-is-starred

Usage

const githubIsStarred = require('github-is-starred')

await githubIsStarred({
  username: 'blaise-hansen',
  repo: 'transitive-bullshit/create-react-library'
}) // => true

API

githubIsStarred

Checks if a user has starred a particular GitHub repo.

Type: function (opts): Promise

  • opts object Config options
    • opts.username string GitHub username of user to check
    • opts.repo string Full name of GitHub repo to check
    • opts.client object? Optional authenticated @octokit/rest client

Related

License

MIT © Travis Fischer

Current Tags

  • 1.0.1                                ...           latest (19 days ago)

2 Versions

  • 1.0.1                                ...           19 days ago
  • 1.0.0                                ...           a year ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 2
Last Day 0
Last Week 1
Last Month 18
Dependencies (2)
Dev Dependencies (3)
Dependents (1)

Copyright 2014 - 2016 © taobao.org |