https://github.com/zyszys/sort-github-stars-size
:sparkles: Sort your personal starred repos by repo's size.
https://github.com/zyszys/sort-github-stars-size
cli github sort star
Last synced: 17 days ago
JSON representation
:sparkles: Sort your personal starred repos by repo's size.
- Host: GitHub
- URL: https://github.com/zyszys/sort-github-stars-size
- Owner: ZYSzys
- License: mit
- Created: 2018-08-15T05:26:04.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2024-10-27T14:06:08.000Z (7 months ago)
- Last Synced: 2024-10-27T15:58:33.164Z (7 months ago)
- Topics: cli, github, sort, star
- Language: JavaScript
- Homepage:
- Size: 207 KB
- Stars: 8
- Watchers: 3
- Forks: 0
- Open Issues: 13
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# sort-github-stars-size
[](https://npmjs.org/package/sort-github-stars-size)
[](https://travis-ci.org/ZYSzys/sort-github-stars-size)
[](https://codecov.io/gh/ZYSzys/sort-github-stars-size)
[](https://npmjs.org/package/sort-github-stars-size)
[](https://github.com/prettier/prettier)
[](https://github.com/ZYSzys/sort-github-stars-size/blob/master/LICENSE)> Sort your personal starred repos by repo's size.

## Installation
### Global
```sh
# Using npm
npm install -g sort-github-stars-size# Using yarn
yarn global add sort-github-stars-size
```### Local
```sh
# Using npm
npm install --save sort-github-stars-size# Using yarn
yarn add sort-github-stars-size
```## Usage
### NodeJS
```js
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
```bash
# use your username, 'ZYSzys' is mine
sort-starred-by-size ZYSzys
```## Thanks
- [gh.js](https://github.com/IonicaBizau/gh.js)
## License
[MIT](https://github.com/ZYSzys/sort-github-stars-size/blob/master/LICENSE).