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

https://github.com/satyarohith/gio

A handy CLI tool to shorten github.com URLs
https://github.com/satyarohith/gio

cli git-io github-url-shortener url-shortener

Last synced: about 1 year ago
JSON representation

A handy CLI tool to shorten github.com URLs

Awesome Lists containing this project

README

          

# 🔗 gio
> A handy CLI tool to shorten github.com URLs.

## Installation

Install [Nodejs](https://nodejs.org) & then

```sh
npm i -g gio-cli
```

## Usage

To shorten a GitHub URL, just run:
```sh
$ gi
```
It outputs a git.io URL.

To get a custom short link, for example, to shorten [`https://github.com/satyarohith/shark`](https://github.com/satyarohith/shark) to [`git.io/sharkcli`](https://git.io/sharkcli), run:
```sh
$ gi https://github.com/satyarohith/shark sharkcli
```

#### If your clipboard has a `github.com` URL.

To shorten the copied URL, run:
```sh
$ gi
```

To get a custom short link for the copied URL, run:
```sh
$ gi
```

## Built with

- [chalk](https://github.com/chalk/chalk) - Terminal string styling done right.
- [clipboardy](https://github.com/sindresorhus/clipboardy) - Access the system clipboard.
- [request](https://github.com/request/request) - Simplified HTTP request client.

## License

MIT © [Satya Rohith](https://satyarohith.com)