1.0.2 • Published 1 year ago

encurtanet v1.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

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)
})()