1.0.1 • Published 5 years ago

github-is-starred v1.0.1

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

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