Skip to content

chasyumen/cb0tcc.js

Repository files navigation

cb0tcc.js

TotalDownloads GitHub commit activity m Node.js CI License

An official cb0t.cc api package.

install

npm i cb0tcc

Usage

shorten(url)

Function

URL

The url to create shortened url.

shorten(`https://google.com`).then(res => {
  console.log(`Url created: ${res.url}`)
}).catch(console.error)

returns

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")
}

Example usage

const { shorten } = require("cb0tcc");

shorten(`https://google.com`);

License

© chasyumen 2021. Released under the MIT license

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published