An official cb0t.cc api package.
npm i cb0tcc
Function
The url to create shortened url.
shorten(`https://google.com`).then(res => {
console.log(`Url created: ${res.url}`)
}).catch(console.error)
Object
{
url: String, //URL (E.g.: "https://cb0t.cc/1")
code: String, //code (E.g.: "1")
message: String //message (E.g.: "URL Created: https://cb0t.cc/1")
}
const { shorten } = require("cb0tcc");
shorten(`https://google.com`);
© chasyumen 2021. Released under the MIT license