sort-github-user-repos

1.0.10 • Public • Published

sort-github-user-repos

Support me on Patreon Buy me a book PayPal Ask me anything Version Downloads Get help on Codementor

Buy Me A Coffee

Sort GitHub repositories by stars for user.

☁️ Installation

# Using npm 
npm install --save sort-github-user-repos
 
# Using yarn 
yarn add sort-github-user-repos

📋 Example

const sortGhRepos = require("sort-github-user-repos")
    , emojic = require("emojic")
    ;
 
// Sort @alysonla repos by stars
sortGhRepos("alysonla", (err, repos) => {
    console.log(err || repos.map(function (c) {
        return `${c.stargazers_count} ${emojic.star} ${c.full_name}`;
    }).join("\n"));
});
// =>
// 23 ⭐ alysonla/hubber-memory-game
// 6 ⭐ alysonla/hackday-card
// 4 ⭐ alysonla/travel
// 2 ⭐ alysonla/all-the-things
// 2 ⭐ alysonla/drizzydrakefanpage
// 1 ⭐ alysonla/back-office
// 1 ⭐ alysonla/sffoodtrucks
// 1 ⭐ alysonla/mojibar
// 1 ⭐ alysonla/alysonla.github.io
// 0 ⭐ alysonla/dotfiles
// 0 ⭐ alysonla/hub
// 0 ⭐ alysonla/css-robot
// 0 ⭐ alysonla/intro-class
// 0 ⭐ alysonla/johnny-cash
// 0 ⭐ alysonla/auditing
// 0 ⭐ alysonla/choose-your-own-adventure
// 0 ⭐ alysonla/motivational-text
// 0 ⭐ alysonla/oh-no-broken-code
// 0 ⭐ alysonla/patchwork
// 0 ⭐ alysonla/rap-city
// 0 ⭐ alysonla/html-css-resume-template
// 0 ⭐ alysonla/resume
// 0 ⭐ alysonla/heygirl
// 0 ⭐ alysonla/Casper
// 0 ⭐ alysonla/hello-world
// 0 ⭐ alysonla/sheetsee.js
// 0 ⭐ alysonla/hb-intro-final-project
// 0 ⭐ alysonla/student-sites
// 0 ⭐ alysonla/developer.github.com
// 0 ⭐ alysonla/suggestotron
// 0 ⭐ alysonla/github-for-developers-7
// 0 ⭐ alysonla/terminal-commands
// 0 ⭐ alysonla/github-for-developers-1
// 0 ⭐ alysonla/bottletodo
// 0 ⭐ alysonla/git-it
// 0 ⭐ alysonla/twitter.github.com
// 0 ⭐ alysonla/Full-Stack
// 0 ⭐ alysonla/TwitterWebDataConnector
// 0 ⭐ alysonla/eshas-restaurant
// 0 ⭐ alysonla/wwc-calendar
// 0 ⭐ alysonla/madlibs
// 0 ⭐ alysonla/zipfian-application-test
// 0 ⭐ alysonla/httparty

❓ Get Help

There are few ways to get help:

  1. Please post questions on Stack Overflow. You can open issues with questions, as long you add a link to your Stack Overflow question.
  2. For bug reports and feature requests, open issues. 🐛
  3. For direct and quick help, you can use Codementor. 🚀

📝 Documentation

sortByStars(username, token, callback)

Sorts the user repos by stars.

Params

  • String username: The GitHub username.
  • String token: An optional access token.
  • Function callback: The callback function.

Return

  • gh.js The gh.js instance.

😋 How to contribute

Have an idea? Found a bug? See how to contribute.

💖 Support my projects

I open-source almost everything I can, and I try to reply to everyone needing help using these projects. Obviously, this takes time. You can integrate and use these projects in your applications for free! You can even change the source code and redistribute (even resell it).

However, if you get some profit from this or just want to encourage me to continue creating stuff, there are few ways you can do it:

  • Starring and sharing the projects you like 🚀

  • Buy me a book—I love books! I will remember you after years if you buy me one. 😁 📖

  • PayPal—You can make one-time donations via PayPal. I'll probably buy a coffee tea. 🍵

  • Support me on Patreon—Set up a recurring monthly donation and you will get interesting news about what I'm doing (things that I don't share with everyone).

  • Bitcoin—You can send me bitcoins at this address (or scanning the code below): 1P9BRsmazNQcuyTxEqveUsnf5CERdq35V6

Thanks! ❤️

📜 License

MIT © Ionică Bizău

Readme

Keywords

Package Sidebar

Install

npm i sort-github-user-repos

Weekly Downloads

4

Version

1.0.10

License

MIT

Unpacked Size

8.65 kB

Total Files

4

Last publish

Collaborators

  • ionicabizau