https://github.com/ultirequiem/shorty
🔗 Command Line Tool and library to shorten URLS
https://github.com/ultirequiem/shorty
cli-tool deno typescript urls
Last synced: about 1 year ago
JSON representation
🔗 Command Line Tool and library to shorten URLS
- Host: GitHub
- URL: https://github.com/ultirequiem/shorty
- Owner: UltiRequiem
- License: mit
- Created: 2021-10-05T19:23:50.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2024-04-26T00:07:12.000Z (about 2 years ago)
- Last Synced: 2025-05-08T03:17:46.096Z (about 1 year ago)
- Topics: cli-tool, deno, typescript, urls
- Language: TypeScript
- Homepage: https://deno.land/x/shorty
- Size: 52.7 KB
- Stars: 5
- Watchers: 2
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Shorty
[](https://gitmoji.dev)
[](https://opensource.org/licenses/MIT)



You can get this package by [nest.land](https://nest.land/package/shorty),
[deno.land](https://deno.land/x/shorty) or
[denopkg](https://denopkg.com/UltiRequiem/shorty/mod.ts).
## Usage
This package exposes just one function,
[shorty](https://github.com/UltiRequiem/shorty/blob/main/mod.ts#L3).
```typescript
import shorty from "https://deno.land/x/shorty/mod.ts";
const shortUrl = await shorty("https://github.com/UltiRequiem/shorty");
console.log(shortUrl); // https://cleanuri.com/OjXAO1
```
## CLI Tool
### Installation
- [deno.land/x](https://deno.land/x/shory/cli.ts):
```bash
deno install --allow-net https://deno.land/x/shorty/cli.ts
```
- [denopkg.com](https://denopkg.com/UltiRequiem/shorty/cli.ts):
```bash
deno install --allow-net https://denopkg.com/UltiRequiem/shorty/cli.ts
```
- [nest.land](https://x.nest.land/shorty/cli.ts):
```bash
deno install --allow-net https://x.nest.land/shorty@1.1.1/cli.ts
```
### Usage
```bash
$ shorty https://stackoverflow.com/questions/5717093
Original URL: https://stackoverflow.com/questions/5717093
Short URL: https://cleanuri.com/GeWAQO
```
> It is printed with colors :)
### License
[This project](https://deno.land/x/template) is licensed under the
[MIT License](./LICENSE.md).