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

1.1.1 • Public • Published

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

Package Sidebar

Install

npm i isgd-api

Weekly Downloads

21

Version

1.1.1

License

ISC

Unpacked Size

14.1 kB

Total Files

15

Last publish

Collaborators

  • cypher34a