Who Unfollowed Me – GitHub CLI 😢
Tags: javascript, github, showdev, node
Published: 2020-08-30 10:28:13

There is a saying in the developer community that getting followers on GitHub is super hard. There are in fact memes about it. 

![GitHub Meme](https://dev-to-uploads.s3.amazonaws.com/i/v1lbpim76kj77pnx6582.jpg)

I am a Computer Science student who mostly works with JavaScript and builds open-source tools. These tools are mostly Node.js based Command-Line Interfaces (CLIs) to automate stuff. You can check them out on my [GitHub](https://github.com/msaaddev). 

Two months back, I tweeted that I'm 14 people short of reaching 100 followers on my [GitHub](https://github.com/msaaddev). This tweet got viral and more people followed me in two days than in two years.

[![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/s74r8oi4gdx065jmnu6i.png)](https://twitter.com/msaaddev/status/1275504587705847811)

## 😠 Who Unfollowed Me

Yesterday, I launched a [CLI](https://github.com/msaaddev/who-unfollowed-me) that lets you know who recently unfollowed you on GitHub. There is a small story behind why I build this CLI.

Actually, it happened to me more than twice that when I was about to reach 200, someone unfollowed me. GitHub does not provide any feature to let you know who did that. So I blended GitHub REST API and a little bit of creativity and voila! [who-unfollowed-me](https://github.com/msaaddev/who-unfollowed-me) came to life. 

### 👨🏻‍💻 How It Works

Copy-paste the following command in your Terminal. If you're a Windows user, first run your Command Prompt or Terminal as Administrator. If you're using macOS, make sure to add `sudo` before the following command.

```sh
npm i -g who-unfollowed-me
```

Now run the CLI by writing the following command on your terminal.

```sh
unfollow
```

When you run the CLI for the first time, it will ask for your GitHub username. It will save it for later use. 

[![first run](https://camo.githubusercontent.com/0fee06dd25c42e9d25fff7ec761d9454e22b75b7/68747470733a2f2f692e696d6775722e636f6d2f7344335844724f2e706e67)](https://github.com/msaaddev/who-unfollowed-me)

After this, whenever you run the CLI by writing `unfollow` in your terminal, the CLI will show you who recently unfollowed you.

[![unfollow](https://camo.githubusercontent.com/70311f23b4aac105d763b04de30abf9c58bcab38/68747470733a2f2f692e696d6775722e636f6d2f30395434594b712e706e67)](https://github.com/msaaddev/who-unfollowed-me)

If no one has unfollowed you, it will also let you know this.

[![no one unfollowed](https://camo.githubusercontent.com/879340e9f12e44b275633e42f990f4ab92b6906d/68747470733a2f2f692e696d6775722e636f6d2f6a67776834794e2e706e67)](https://github.com/msaaddev/who-unfollowed-me)

> If you are a Windows user, make sure that whenever you run the CLI, first run your Terminal or Command Prompt as Administrator.

## 🙌 Wrap Up

Whenever you lose some followers on GitHub, you can use this CLI to know who unfollowed you. It would not be wrong to say that getting followers on GitHub is a different kind of happiness and at the same time losing them is an entirely different kind of pain. 

The CLI is also on Product Hunt. Kindly, show some love and check it out.


[![Product Hunt](https://api.producthunt.com/widgets/embed-image/v1/featured.svg?post_id=247477&theme=light)](https://www.producthunt.com/posts/who-unfollowed-me-github?utm_source=badge-featured&utm_medium=badge&utm_souce=badge-who-unfollowed-me-github)

Cheerios 🤞