Skip to content

Checks if a user has starred a particular GitHub repo.

Notifications You must be signed in to change notification settings

transitive-bullshit/github-is-starred

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Support my OSS work by following me on twitter twitter

About

Checks if a user has starred a particular GitHub repo.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published