url-minify
TypeScript icon, indicating that this package has built-in type declarations

2.8.4 • Public • Published

NPM version CI Downloads

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.

Readme

Keywords

none

Package Sidebar

Install

npm i url-minify

Weekly Downloads

120

Version

2.8.4

License

MIT

Unpacked Size

6.66 kB

Total Files

6

Last publish

Collaborators

  • rubins