Socket
Socket
Sign inDemoInstall

tinyurl-api

Package Overview
Dependencies
18
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

tinyurl-api

Shorten a url with TinyURL.


Version published
Maintainers
1
Weekly downloads
289
increased by12.45%
Install size
900 kB

Weekly downloads

Readme

Source

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.

Keywords

FAQs

Last updated on 30 Apr 2020

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc