GithubHelp home page GithubHelp logo

bookercodes / github-unfollow-everyone Goto Github PK

View Code? Open in Web Editor NEW
30.0 30.0 3.0 6 KB

:fallen_leaf: Start anew. Unfollow everyone who you currently follow on GitHub.

License: MIT License

JavaScript 100.00%

github-unfollow-everyone's Introduction

Hi there ๐Ÿ‘‹

  • My name's Alex and I work at @Scrimba where I host The Scrimba Podcast, make YouTube videos, and support writers on the company blog
  • Before all that, I was a (mostly JavaScript) Full-Stack Web Developer and Developer Advocate
  • You can still find some of my projects and contributions here on GitHub but I don't code as much as I would like ๐Ÿ‘พ!

Projects

github-unfollow-everyone's People

Contributors

szdc avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

github-unfollow-everyone's Issues

Timeout on 200+ followings

Using the command in iTerm does the job but it timeouts so you will have to relaunch it till it's done

OS: macOS Monetary
Chip: Apple M1
Total Number of Cores: 8 (4 performance and 4 efficiency)
Memory: 16 GB

oops. an error occured: Error: read ETIMEDOUT
    at module.exports.sendError (/opt/homebrew/lib/node_modules/github-unfollow-everyone/node_modules/github/api/v3.0.0/index.js:30:19)
    at /opt/homebrew/lib/node_modules/github-unfollow-everyone/node_modules/github/api/v3.0.0/user.js:728:29
    at callCallback (/opt/homebrew/lib/node_modules/github-unfollow-everyone/node_modules/github/index.js:743:17)
    at ClientRequest.<anonymous> (/opt/homebrew/lib/node_modules/github-unfollow-everyone/node_modules/github/index.js:809:17)
    at ClientRequest.emit (node:events:527:28)
    at TLSSocket.socketErrorListener (node:_http_client:442:9)
    at TLSSocket.emit (node:events:527:28)
    at emitErrorNT (node:internal/streams/destroy:164:8)
    at emitErrorCloseNT (node:internal/streams/destroy:129:3)
    at processTicksAndRejections (node:internal/process/task_queues:83:21) {
  defaultMessage: 'Internal Server Error',
  code: '500'
}

Where can I use this?

I am not sure how can I use this online or local.
Could you provide detailed ways?
Thanks!

Improvements

Here are some ideas for improvements:

  • Better error handling
    • When interfacing with the GitHub API any number of things could potentially go wrong. The server might be down. Authentication might fail. The user could experience an edge-case that I overlooked. In any case, the error handling could be better. Ideally, the resulted error argument will contain information about the specific error that caused the operation to fail.
  • Progress reporting
    • Similar to how bcrypt accepts a progress report callback, this module should do something similar and report when usernames are found and they said users are unfollowed.
  • Meaningful result argument
    • At the moment the resulted result argument is not useful. It would be good if it contained information about the operation such as how many users were unfollowed.

If you desire any of these let me know, and I will work on them ๐Ÿ˜„.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.