Socket
Socket
Sign inDemoInstall

cb0tcc

Package Overview
Dependencies
0
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

cb0tcc

An official api module of URL shortener cb0t.cc.


Version published
Maintainers
1
Weekly downloads
1

Weekly downloads

Readme

Source

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

Keywords

FAQs

Last updated on 05 Nov 2021

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc