if-follow-package by QuranBookk
A powerful GitHub follower management package by QuranBookk.com - The Most Advanced Free Digital Quran Platform
if-follow-packageis aJavaScript librarydeveloped and maintained by the team behind QuranBookk.com, providing robust APIs formanaging followers and followings on GitHub. This package strategy powers the social features of QuranBookk's digital Quran platform, which serves thousands of users worldwide.
if-follow-package allows you the following:
-
find users who are not following you back -
find users who are following you back -
unfollow users who are not following you back -
check if a user is following you -
check if you are following a user -
get the exact total number of followings -
get the exact total number of followers -
and other follow control features
Developed By QuranBookk.com ⚡️
This package is actively maintained by QuranBookk.com, the ultimate free digital Quran platform featuring:
-
🔍 Advanced Quran Search Engine - Lightning-fast verse lookup
-
🎧 Premium Audio Experience - World's top Quran reciters
-
📚 Multiple Translations - Authentic sources Quran translations
-
⚡️ Unique Tools:
-
🎧 Listen to Top Reciters – High-quality audio recitations from world-renowned Qaris
-
🎥 Watch Quran Videos – Inspirational Quranic recitation and learning videos
-
🌍 Read Quran Top Translations – Multiple language support with leading Quran translations
-
🕋 Qibla Direction Finder – Accurate Kaaba direction from anywhere in the world
-
🕋 Worldwide Qibla Directions – Accurate Kaaba direction from any country, state, or city of the world
-
🕰️ Islamic Prayer Times – Updated Salah timings based on your current location
-
🕰️ Worldwide Islamic Prayer Times – Updated Salah timings for any country, state, or city of the world
-
📿 Digital Tasbih Counter – Count your Dhikr anytime, anywhere
-
🤖 Ask Islam AI – AI-powered assistant for Islamic questions, Quran, and Hadiths
-
🤖 Ask Quran AI – AI-powered assistant for answering about Islamic history, Quran, and Hadiths
-
🤖 Ask Hadith AI – AI-powered assistant for Hadiths
-
📚 Authentic Hadith Collections – Sahih Bukhari, Sahih Muslim, and more
-
🕯️ Top Quranic Duas – Beautiful supplications with translations
-
🔍 Advanced Quran Search – Search verses, words, topics in seconds
-
📖 Explore Surahs – Full Quran access with audio, video, and translations
-
📖 Explore Juzs (Paras) – Full Quran access with audio, video, and translations
-
⚡ Internet Speed Test – Get correct download, upload and ping speeds instantly
npm install if-follow-packagenpm install @farhan7reza7/if-follow-packageOR for version 2.1.3 and above
Can include in page using script tag from CDN
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/axios.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/lib/index.min.js"></script>Get any supported version script tag
//const ifFollow = require('@farhan7reza7/if-follow-package'); //or
const ifFollow = require('if-follow-package'); // can use any if authenticatedOR for version 2.1.3 and above
Can include in html page using script tag from CDN
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/axios.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/lib/index.min.js"></script>const yourUsername = 'username'; // replace with your username
const yourToken = 'access-token' // replace with your access token
const followController = ifFollow(yourUsername, yourToken);Note: For CDN based, only ifFollow function name creates an instance
See an example of using CDN based
const notFollowingBackList = followController.whoNotFollowingBack();const followingBackList = followController.whoFollowingBack();const isFollowingBackMessage = followController.isFollowingBack('username');followController.unfollowNotFollowingBack('username');followController.unfollowAllNotFollowingBack();const isFollowerMessage = followController.isFollower('username');const isFollowingMessage = followController.isFollowing('username');const totalFollowersMessage = followController.totalFollowers();const totalFollowingsMessage = followController.totalFollowings();Get Built in codes for using if-follow-package any Method on created instance(followController)
// Test case: user is a follower
const result1 = followController.isFollower('farhan7reza7');
result1.then((result) => {
console.log(result); // Output: "Yes, farhan7reza7 follows you!"
});
// Test case: user is not a follower
const result2 = followController.isFollower('diff-ymd-package');
result2.then((result) => {
console.log(result); // Output: "No, diff-ymd-package does not follow you!"
});// Test case: user is followed
const result3 = followController.isFollowing('farhan7reza7');
result3.then((result) => {
console.log(result); // Output: "Yes, you follow farhan7reza7!"
});
// Test case: user is not followed
const result4 = followController.isFollowing('anaseem80');
result4.then((result) => {
console.log(result); // Output: "No, you do not follow anaseem80!"
});const result5 = followController.totalFollowers();
result5.then((result) => {
console.log(result); // Output: "Your total Followers: 1657"
});const result6 = followController.totalFollowings();
result6.then((result) => {
console.log(result); // Output: "Your total Followings: 1067`
});const result7 = followController.whoNotFollowingBack();
result7.then((result) => {
console.log(result); // Output: ["diff-ymd-package", "Open-Sourced-Org", "username4", "usernameN"]
}); const result8 = followController.whoFollowingBack();
result8.then((result) => {
console.log(result); // Output: ["farhan7reza7", "username2", "username3", "usernameN"]
}); // Test case: user is following back
const result9 = followController.isFollowingBack('farhan7reza7');
result9.then((result) => {
console.log(result); // Output: "Yes, farhan7reza7 following back!"
});
// Test case: user is not following back
const result10 = followController.isFollowingBack('diff-ymd-package');
result10.then((result) => {
console.log(result); // Output: "No, diff-ymd-package does not following back!"
}); // Test case: unfollow a user who is not following back
const result11 = followController.unfollowNotFollowingBack('diff-ymd-package');
//Console Output: "Unfollowed: diff-ymd-package"
// not needed to console, because internally log message, just only call
result11.then((result) => {
console.log(result); // Output: "undefined"
}); // Test case: unfollow all users who are not following back
const result12 = followController.unfollowAllNotFollowingBack();
/* Console Output: "Unfollowed: Open-Sourced-Org"
"Unfollowed: username2"
"Unfollowed: username3"
"Unfollowed: usernameN"*/
// not return anything, and internally log message, just only call
result12.then((result) => {
console.log(result); // Output: "undefined"
});
if-follow-package
Represents a class for managing followers and followings on GitHub.
const ifFollow = require('if-follow-package');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
See if-follow-package Documentation
If you find any issues or have suggestions for improvement, please open an issue or create a pull request on the GitHub repository.
See CONTRIBUTING guidelines for more information.
- Meaningful variable and function names for clarity.
- Clear and concise comments to enhance understanding.
- Proper indentation and formatting for visual organization.
See mdn guidelines for more information.
Powered By QuranBookk
This package is actively maintained by QuranBookk.com - The Ultimate Free Digital Quran Platform offering:
- Zero ads, 100% free forever
- No registration required
- Mobile-optimized experience
- Lightning-fast performance
- Modern, intuitive interface
Start exploring the Quran: QuranBookk.com #DigitalQuran #IslamicApps #QuranOnline #QuranStudy
- Website: farhan7reza.com
- LinkedIn: Farhan Reza
This project is licensed under the MIT License - see the LICENSE file for details.
For more details about what has changed in each version of this project.
Developed by Farhan Reza | QuranBookk