1.0.1 • Published 2 years ago

cutlink v1.0.1

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

Cutlink

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
1.0.1

2 years ago

1.0.0

2 years ago