Easily use BitLy in your browser.
-
Install it
$ npm install @kulkul/bitly-client
-
Use it
import BitLyService from "@kulkul/bitly-client";
const bitLyService = new BitLyService('token')
const shortenedURL = await bitLyService.shorten('https://kulkul.tech')
console.log({ shortenedURL }); // https://bit.ly/<slug>
However, we have no support for making short URL with alias at this moment.