1.0.1 • Published 4 years ago

tinyurl-api v1.0.1

Weekly downloads
46
License
MIT
Repository
github
Last release
4 years ago

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.