Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/willuhmjs/tinyurl-shorten
- Owner: willuhmjs
- License: apache-2.0
- Created: 2022-03-14T15:50:09.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-03-15T00:45:22.000Z (almost 3 years ago)
- Last Synced: 2024-12-13T21:12:08.131Z (about 2 months ago)
- Language: JavaScript
- Size: 10.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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)