package
Shorten a url with TinyURL.
npm install tinyurl-apiGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
Tagged topics.
Shorten a url with TinyURL.
npm install tinyurl-apiconst tinyurl = require("tinyurl-api");
(async () => {
const url = await tinyurl("https://google.com");
console.log(url);
})();Type: string
The url to shorten.
Type: string
The custom alias for the shortened url.
Estimated unpacked size across 11 packages.
993.2 kB
Includes dependencies.
4 direct · 4 outdated
^0.19.1
2.2.0
^0.6.0
1.0.0
^6.12.1
10.0.0
^2.1.1
8.1.0