encurtanet
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

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

Dependencies (1)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i encurtanet

    Weekly Downloads

    0

    Version

    1.0.2

    License

    MIT

    Unpacked Size

    21.5 kB

    Total Files

    12

    Last publish

    Collaborators

    • marcuth