c-url-shortener
v1.0.3
Published
An npm package that converts your long and non-long urls into short urls
Downloads
2,526
Readme
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