1.0.3 • Published 12 months ago

c-url-shortener v1.0.3

Weekly downloads
-
License
ISC
Repository
github
Last release
12 months ago

Shorten your Long URLs with c-url-shortener

Useful for shortening URLs for sharing.

Installation

npm i c-url-shortener

Usage example

const shortener = require('c-url-shortener');

// Shorten a URL exaple : https://otamurodakbarov.uz

shortener("https://otamurodakbarov.uz").then((shortUrl) => {
    console.log(shortUrl);
});
//=> 'https://urlserver.vercel.app/lKWoFimsf'

API

https://urlserver.vercel.app (Default)

By default, this module uses the https://urlserver.vercel.app API.

You can use a custom API by setting the URL_SHORTENER_API environment variable.

Author

© elayt

1.0.3

12 months ago

1.0.2

12 months ago

1.0.1

12 months ago