who-unfollowed-me
Version:
A CLI that let's you know who recently unfollowed you on GitHub.
19 lines (16 loc) • 334 B
JavaScript
const pwd = process.cwd();
try {
const list = require(`${pwd}/follower.json`);
module.exports = followers => {
if (list.length === 0) return;
followers.forEach(n =>
list.forEach(m => {
if (n === m) {
const index = list.indexOf(n);
list.splice(index, 1);
}
})
);
return list;
};
} catch (error) {}