sort-github-stars-size

1.2.2 • Public • Published

sort-github-stars-size

NPM version Travis CI codecov NPM downloads code style: prettier license

Sort your personal starred repos by repo's size.

Installation

Global

# Using npm 
npm install -g sort-github-stars-size
 
# Using yarn 
yarn global add sort-github-stars-size

Local

# Using npm 
npm install --save sort-github-stars-size
 
# Using yarn 
yarn add sort-github-stars-size

Usage

NodeJS

const sortStarredBySize = require('sort-github-stars-size');
 
// use your username, 'ZYSzys' is mine
sortStarredBySize('ZYSzys', (err, repos) => {
  console.log(
    err ||
      repos
        .map(function(c) {
          return `${c.full_name} => ${c.size} kb`;
        })
        .join('\n')
  );
});
// => sorted list of starred repos

CLI

# use your username, 'ZYSzys' is mine 
sort-starred-by-size ZYSzys

Thanks

License

MIT.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.2.2
    1
    • latest

Version History

Package Sidebar

Install

npm i sort-github-stars-size

Weekly Downloads

1

Version

1.2.2

License

MIT

Unpacked Size

6.61 kB

Total Files

5

Last publish

Collaborators

  • zyszys