1.1.0 • Published 4 years ago

webaily-short v1.1.0

Weekly downloads
3
License
ISC
Repository
github
Last release
4 years ago

Webaily-short.js

Implementation

The implementation is very simple. Just add a file with the webaily-short.js script at the end of the body section.

<script src="https://www.leszekk.eu/cdn/webaily-short.min.js"></script>

or

 $ npm i webaily-short

Usage

//example

shortUrl("https://leszekk.eu", "short", "<token>").then((res) => {
  console.log(res);
}).catch((err) => {
  console.log(err)
});

//First parameter - url -> e.g. https://leszekk.eu
//Second parameter - type -> short/long
//Third parameter - token -> your token (generate here: https://webaily.web.app/api)