Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/willuhmjs/tinyurl-shorten

An error-resistant module to shorten a URL using TinyURL.
https://github.com/willuhmjs/tinyurl-shorten

Last synced: 3 days ago
JSON representation

An error-resistant module to shorten a URL using TinyURL.

Awesome Lists containing this project

README

        

# tinyurl-shorten
An error-resistant module to shorten a URL using [TinyURL](https://www.tinyurl.com).

[![NPM](https://nodei.co/npm/tinyurl-shorten.png)](https://nodei.co/npm/tinyurl-shorten/)

## Installation
```
npm install tinyurl-shorten
```

## Usage
```
const tinyurl = require("tinyurl-shorten");

;(async () => {
// https://tinyurl.com/...
await tinyurl(url, alias?);
})();
```

## License
**tinyurl-shorten** is licensed under the [Apache License 2.0](https://github.com/willuhm-js/tinyurl-shorten/blob/main/LICENSE)