is-stargazer
v0.2.3
Published
Check if user has starred the repository
Downloads
5
Maintainers
Readme
is-stargazer
Check if user has starred the repository
Installation
npm install --save is-stargazer
Usage
const isStargazer = require('is-stargazer')
isStargazer({
repos: 'amimaro/is-stargazer',
query: 'amimaro',
token: process.env.PERSONAL_ACCESS_TOKEN // optional
})
.then(
res => {
console.log(res)
}
)
.catch(
err => {
console.error(err)
}
)
How to create a Personal API Access Token?
Testing
npm run test
License
MIT LICENSE.md
Contributing
Pull Requests are welcome.
- Fork it
- Create your feature branch (
git checkout -b new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin new-feature
) - Create new Pull Request
Crafted with <3 by amimaro.