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

Readme

Keywords

Package Sidebar

Install

npm i encurtanet

Weekly Downloads

3

Version

1.0.2

License

MIT

Unpacked Size

21.5 kB

Total Files

12

Last publish

Collaborators

  • marcuth