short-urls
v1.1.11
Published
Very Helpful Short Url Package
Downloads
40
Maintainers
Readme
Welcome To My First Package
Hello I'm Asta Wlc To My Package
😢 almost R.I.P
My Package It's So Easy And Very HelpFul
You Can Short Urls With More Than 4 Domains Just For Now
But I'll Add A lot Of Them Soon!
Here's Sample Code Of The Package
const short = require('short-urls');
(async () => {
const shorted = await short('https://www.google.com','l-o-l','Google'); //that's will Short Google Url TO ==> https://www.l-o-l.tk/google
//You Can See The Output With Log Function
console.log(shorted); // {
// "id": "google",
// "url" : "https://www.google.com",
// "domain" : "l-o-l",
// "message" : "Done Shorted The Url"
// }
})
I'm Sure You Think About That
How To Make Url Shorter Like Probot
it's So Easy With Short Urls Package Just Set The Type To i8
sample code
const short = require('short-urls');
client.on('message',async message=>{
if(message.content.split(' ')[0] == '#short'){
let url = message.content.split(' ')[1];
let id = message.content.split(' ')[2];
const shorted = await short(url,'i8',id); //that's will Short Google Url TO ==> https://i8.ae/codes
//You Can See The Output With Log Function
message.channel.send(`https://www.l-o-l.tk/${shorted.id}`);
// For Example :
// {
// "id": "codes",
// "url" : "https://discord.gg/codes",
// "domain" : "i8",
// "message" : "Done Shorted The Url"
// }
}
})
types
| types | domain | custom id| | ----------- | ----------- | ----------- | | i8 | https://i8.ae | false| | l-o-l | https://www.l-o-l.tk| true| | cutt | https://cutt.us| true| |ks.sa | https://ks.sa| true|
Features
- More than 10 Domains
- Free
- Fast
- Helpful
what's new
- Fix i8 Bug
- Fixed .com Bug Too
- Added ks.sa domain
- Just Change README.MD
- Beta..
support us
discord
Youtube Channel
nothing
More Examples
Codes Example
const short = require('short-urls');
(async () => {
const shorted = await short('https://www.google.com','ks.sa','Google'); //that's will Short Google Url TO ==> https://www.l-o-l.tk/google
//You Can See The Output With Log Function
console.log(shorted); // {
// "id": "google",
// "url" : "https://www.google.com",
// "domain" : "l-o-l",
// "message" : "Done Shorted The Url"
// }
})