encurtanet
v1.0.2
Published
Um simples wrapper NÃO OFICIAL da API do EncurtaNet para JavaScript
Downloads
6
Readme
Simple use example
import { EncurtaNet, noAds, interstitialsAds } from "encurtanet/dist"
(async () => {
const shortener = new EncurtaNet("YOUR API TOKEN HERE")
const urlInfo = await shortener.shorten(
"https://marcuth.github.io/", // Your url
"url-alias", // Alias of the url
true, // If response is text format
noAds // Ads type
)
const shortenedUrl = urlInfo.getShortenedUrl()
console.log(shortenedUrl)
})()