Skip to content

Easily use TinyURL in your JavaScript app. This library is no longer maintained.

Notifications You must be signed in to change notification settings

kulkultech/tinyurl-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TinyURL JavaScript Client

Contact me on Codementor Made in Indonesia Build Status

Easily use TinyURL in your browser.

Getting Started

  1. Install it

     $ npm install @kulkul/tinyurl-client
    
  2. Use it

import shortenUrl from "@kulkul/tinyurl-client";

shortenUrl("https://kulkul.tech").then((result) => {
    console.log({ result }); // https://tinyurl.com/<slug>
});

To use it using alias you can do the following

import shortenUrl from "@kulkul/tinyurl-client";

shortenUrl("https://kulkul.tech", "shorted-kulkul").then((result) => {
    console.log({ result }); // https://tinyurl.com/shorted-kulkul
});

Releases

No releases published

Packages

No packages published