url-minify
v2.8.4
Published
Library to shorten url without any api keys
Downloads
714
Readme
Minify Url
Library to make url shorter
INSTALLAION
npm i url-minify
yarn add url-minify
USAGE
Currently 12 providers are supported
import minify from 'url-minify';
~(async function () {
console.log(
await minify('https://rubiin.vercel.app', { provider: 'isgd' }),
);
// ==> {longUrl: 'https://rubiin.vercel.app',shortUrl: 'https://is.gd/PTkruq'}
})();
const minify = require('url-minify').default;
~(async function () {
console.log(
await minify('https://rubiin.vercel.app', { provider: 'isgd' }),
);
// ==> {longUrl: 'https://rubiin.vercel.app',shortUrl: 'https://is.gd/PTkruq'}
})();
Docs
Read full docs here.