if‐follow‐package API Documentation - farhan7reza7/if-follow-package GitHub Wiki
Welcome to the if-follow-package wiki👋
Represents a module for managing followers and followings on GitHub.
const followController = ifFollow(yourUsername, yourToken);-
yourUsername: Your GitHub username. -
yourToken: Your GitHub personal access token. -
Returns:An object containing functions to interact with followers and followings on Github.
Check if a user is following you.
const isFollowerMessage = followController.isFollower('username');username: The username of the user you want to check.
Returns: A message indicating if the user is following you.
Check if you are following a user.
const isFollowingMessage = followController.isFollowing('username');username: The username of the user you want to check.
Returns: A message indicating if you are following the user.
Get the total number of followers.
const totalFollowersMessage = followController.totalFollowers();Returns: A message with the total number of followers.
Get the total number of followings.
const totalFollowingsMessage = followController.totalFollowings();Returns: A message with the total number of followings.
Get a list of users who are not following you back.
const notFollowingBackList = followController.whoNotFollowingBack();Returns: An array of usernames who are not following you back.
Get a list of users who are following you back.
const followingBackList = followController.whoFollowingBack();Returns: An array of usernames who are following you back.
Check if a specific user is following you back.
const isFollowingBackMessage = followController.isFollowingBack('username');username: The username of the user you want to check.
Returns: A message indicating if the user is following you back.
Unfollow a user who is not following you back.
followController.unfollowNotFollowingBack('username');username: The username of the user you want to unfollow.
Returns: {Promise} A promise that resolves once the user is unfollowed.
Special case: It outputs message in console/terminal indicating which user unfollowed
Unfollow all users who are not following you back.
followController.unfollowAllNotFollowingBack();Returns: {Promise} A promise that resolves once all users are unfollowed.
Special case: It outputs messages in console/terminal indicating which users unfollowed