1.1.1 • Published 3 years ago

isgd-api v1.1.1

Weekly downloads
-
License
ISC
Repository
-
Last release
3 years ago

ISGD Link Shortener API

Features

  • Shorten
  • Lookup

Synchronous Examples

Shorten

isgdApi.shorten('https://www.youtube.com/')
.then(console.log)
.catch(err => console.log("Link not valid"))

Lookup

isgdApi.lookup('https://is.gd/G8mOLb')
.then(console.log)
.catch(err => console.log("Link not valid"))

Asynchronous Examples

Shorten

const shortenYTLink = async () => {
    const link = await isgdApi.shorten('https://www.youtube.com/')
    console.log(link)
}

shortenYTLink()

Lookup

const lookupYTLink = async () => {
    const link = await isgdApi.lookup('https://is.gd/G8mOLb')
    console.log(link)
}

lookupYTLink()
1.1.1

3 years ago

1.1.0

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago