
T.LY Node URL Shortener API Package
We’re excited to introduce the T.LY Node.js URL Shortener API, a simple package to shorten URLs directly from your Node.js applications. This package makes it easy for developers to integrate T.LY’s powerful URL-shortening capabilities with just a few lines of code.
Getting Started
To start using the T.LY Node.js package, install it from npm:
npm install tly-api
Create an account, generate an API key, and then you can shorten a URL with the following code:
const TLY = require('tly-api');
const tly = new TLY('YOUR_API_KEY');
(async () => {
try {
const shortUrl = await tly.shorten('https://example.com');
console.log('Shortened URL:', shortUrl);
} catch (error) {
console.error('Error:', error);
}
})();
Features
- Fast URL shortening – Quickly shorten any long URL
- Expand short URLs – Retrieve the original URL from a short link
- Click tracking – Get insights into your link’s performance
- Easy integration – Lightweight and simple to use
We hope this package makes URL shortening even easier for Node.js developers. Try it out today and let us know what you think!
Related Posts
Tim Leland
Ready to improve how you manage links?
T.LY URL Shortener makes long links look cleaner and easier to share! Add your own Custom Domains to personalize your brand. Create Smart Links to customize a URL's destination. Generate QR codes to promote your business.
Sign Up for Free