webaily-short
v1.1.0
Published
Thanks to this module, you can quickly and easily shorten the url in your application!
Downloads
2
Readme
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)