Skip to content

Latest commit

 

History

History
27 lines (16 loc) · 937 Bytes

README.md

File metadata and controls

27 lines (16 loc) · 937 Bytes

BitLy JavaScript Client

Contact me on Codementor Made in Indonesia Build Status

Easily use BitLy in your browser.

Getting Started

  1. Install it

     $ npm install @kulkul/bitly-client
    
  2. 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.