is-stargazer

0.2.3 • Public • Published

is-stargazer Build Status js-standard-style

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.

  1. Fork it
  2. Create your feature branch (git checkout -b new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin new-feature)
  5. Create new Pull Request

Crafted with <3 by amimaro.

/is-stargazer/

    Package Sidebar

    Install

    npm i is-stargazer

    Weekly Downloads

    8

    Version

    0.2.3

    License

    MIT

    Unpacked Size

    3.48 kB

    Total Files

    4

    Last publish

    Collaborators

    • amimaro