npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

@minhchi1509/facebook-profile-cleaner

v1.1.2

Published

Clean your Facebook profile by removing all posts, comments, likes, and reactions, following, sent friend requests, and more...

Readme

Features

  • Get liked pages, friends, followings, joined groups, sent friend requests and write to CSV file (if need)
  • Remove all friends.
  • Remove all liked pages.
  • Leave all groups.
  • Unfollow all pages or users
  • Cancel all sent friend requests
  • Change privacy of all posts (public, friend, private)
  • Delete all posts
  • Delete reactions, comments in given time interval

Installation

npm install @minhchi1509/facebook-profile-cleaner

Usage

  • Example of writing your profile statistics:
import { FacebookStatistics } from "@minhchi1509/facebook-profile-cleaner";

// Cookies of your Facebook account. You can get it by using Cookie-Editor extension on Chrome
const cookies = "YOUR_FACEBOOK_COOKIES";

const facebookStatistics = new FacebookStatistics(cookies);

facebookStatistics.getFriends();
facebookStatistics.getFollowings();
facebookStatistics.getLikedPages();
facebookStatistics.getJoinedGroups();
facebookStatistics.getSentFriendRequests();
  • Example of cleaning your profile:
import { FacebookCleaner } from "@minhchi1509/facebook-profile-cleaner";

// Cookies of your Facebook account. You can get it by using Cookie-Editor extension on Chrome
const cookies = "YOUR_FACEBOOK_COOKIES";

const facebookCleaner = new FacebookCleaner(cookies);

facebookCleaner.removeAllFriends();
facebookCleaner.removeAllLikedPages();
facebookCleaner.leaveAllGroups();
facebookCleaner.unfollowAllPagesAndUsers();
facebookCleaner.cancelAllSentFriendRequests();
facebookCleaner.deletePosts();
facebookCleaner.changePostsPrivacy("FRIENDS");
facebookCleaner.deleteReactions("08/2020", "12/2022");
facebookCleaner.deleteComments("08/2020", "12/2022");

API Documentation

Writing profile statistics:

facebookStatistics.getFriends(writeToCSV: boolean = true);
facebookStatistics.getFollowings(writeToCSV: boolean = true);
facebookStatistics.getLikedPages(writeToCSV: boolean = true);
facebookStatistics.getJoinedGroups(writeToCSV: boolean = true);
facebookStatistics.getSentFriendRequests(writeToCSV: boolean = true);

Parameters:

  • writeToCSV (boolean, optional): If true, it will write statistic to CSV file and save to your Download folder. Default value: true.

Clean profile:

facebookCleaner.removeAllFriends(batchSize: number = 5);
facebookCleaner.removeAllLikedPages(batchSize: number = 5);
facebookCleaner.leaveAllGroups(batchSize: number = 1);
facebookCleaner.unfollowAllPagesAndUsers(batchSize: number = 1);
facebookCleaner.cancelAllSentFriendRequests(batchSize: number = 5);
facebookCleaner.deletePosts(limit: number = Infinity, batchSize: number = 5); // Limit must be multiple of 3
facebookCleaner.changePostsPrivacy(privacy: "SELF" | "EVERYONE" | "FRIENDS", limit: number = Infinity, batchSize: number = 5); // Limit must be multiple of 3
facebookCleaner.deleteReactions(fromDate: string, toDate: string, batchSize: number = 5);
facebookCleaner.deleteComments(fromDate: string, toDate: string, batchSize: number = 5);

Parameters:

  • batchSize (number, optional): Number of items that will be executed simultaneously.
  • limit (number, optional): Number of posts in 1 execution. Suitable when your profile has many posts and you want to execute the code multiple times.
  • fromDate, toDate (string, required): It mus be in format "MM/YYYY" (example: "02/2024" and fromDate must be before or equal to toDate.

[!WARNING] Note that when you specify the value of limit parameter, after the batch execution is complete, there will be a folder named cache_cursor/[user_id] and it contains files like posts_id.json to save information for the next execution. Please DO NOT edit anything in these files. If you want to execute again, delete that file.

[!WARNING] When you specify batchSize larger than the default value, your Facebook account MAY BE CHECKPOINTED, please consider.