Hello I'm Asta Wlc To My Package
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"
// }
})
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 | 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 |
- More than 10 Domains
- Free
- Fast
- Helpful
- Fix i8 Bug
- Fixed .com Bug Too
- Added ks.sa domain
- Just Change README.MD
- Beta..
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"
// }
})