Skip to content

how to check if you are following a user or not? By Farhan Reza #153

Answered by farhan7reza7
farhan7reza7 asked this question in Q&A
Discussion options

You must be logged in to vote

Use if-follow-package for GitHub:

Steps:
1.

npm install if-follow-package
const ifFollow = require('if-follow-package'); // can use any
const yourUsername = 'username';  // replace with your github username
const yourToken = 'access-token' // replace with your access token
const followController = ifFollow(yourUsername, yourToken);
  1. Check if you are following a user

const isFollowingMessage = followController.isFollowing('username');

for more infos or help, See Farhan Reza

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by spirito7phil
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
documentation Improvements or additions to documentation question Further information is requested
1 participant