Skip to content
/ cutlink Public

Cutlink is a lightweight NPM package that allows you to quickly and easily shorten URLs using a variety of link shortening services.

License

Notifications You must be signed in to change notification settings

lqvers/cutlink

Repository files navigation

Cutlink is a lightweight NPM package that allows you to quickly and easily shorten URLs using a variety of link shortening services. With Cutlink, you can integrate link shortening capabilities into your web or mobile application with just a few lines of code.

Overview

This is just a quick example of how to use the package, for a more in depth explanation check the documentation

import { Shortener } from 'cutlink'; // Import the package
const shortener = new Shortener('tinyurl.com'); // Check docs for all supported shorteners

const url = 'google.com';
const shortened = shortener.new(url); // Create a new shortened URL

console.log(shortened) // Log shortened URL to console

About

Cutlink is a lightweight NPM package that allows you to quickly and easily shorten URLs using a variety of link shortening services.

Topics

Resources

License

Stars

Watchers

Forks