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

1.0.1 • Public • Published

tinyurl-api Travis CI Build Status

Shorten a url with TinyURL.

NPM Badge

Install

npm install tinyurl-api

Usage

const tinyurl = require("tinyurl-api");
 
(async () => {
    const url = await tinyurl("https://google.com");
 
    console.log(url);
})();

API

tinyurl(url, alias?)

url

Type: string

The url to shorten.

alias

Type: string

The custom alias for the shortened url.

Package Sidebar

Install

npm i tinyurl-api

Weekly Downloads

298

Version

1.0.1

License

MIT

Unpacked Size

3.41 kB

Total Files

6

Last publish

Collaborators

  • richienb