Skip to content

transitive-bullshit/github-is-starred

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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