c-url-shortener

1.0.3 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i c-url-shortener

Weekly Downloads

591

Version

1.0.3

License

ISC

Unpacked Size

2.4 kB

Total Files

3

Last publish

Collaborators

  • elayt