Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/yashraj-n/github-size

A Simple Lightweight Tool to check size of any Github Repository
https://github.com/yashraj-n/github-size

Last synced: 4 days ago
JSON representation

A Simple Lightweight Tool to check size of any Github Repository

Awesome Lists containing this project

README

        


Github-Size


A Simple Lightweight Tool to check size of any Github Repository

## ⚡️ Quick start
Install the CLI using npm or yarn

```bash
npm i -g github-size
# or
yarn global add github-size
```
## ⚙️ Usage
```bash
github-size
```

Example:
```bash
github-size https://github.com/torvalds/linux
```
Output:
```bash
4.21 GB
```

## 📝API

```javascript
const {getRepoDetails} = require("../api");
const url = "https://github.com/torvalds/linux";

getRepoDetails(url).then((size) => console.log(size)); // 4.21 GB
```
## License

[MIT](https://choosealicense.com/licenses/mit/)