1.0.1 • Published 9 months ago

trlinkrache v1.0.1

Weekly downloads
-
License
ISC
Repository
-
Last release
9 months ago

Installation

npm install trlinkrache

Usage

const LinkShortener = require('./linkShortener');

const apiKey = 'API_KEY';
const destination = 'https://yourdestinationlink.com';
const count = "2" 
/*
5 -> Film/Dizi
4 -> Spor/Futbol
3 -> Oyun/İndirme
2 -> Diğer
1 -> Yetişkin içerik +18
*/

const linkShortener = new LinkShortener(apiKey);

linkShortener.on('linked', shortenedUrl => {
  console.log('Shortened URL:', shortenedUrl);
});

linkShortener.shortenLink(destination, count)
  .then(() => console.log('Link shortening completed.'))
  .catch(error => console.error('Error:', error.message));
1.0.1

9 months ago

1.0.0

9 months ago