Skip to content
This repository has been archived by the owner on Aug 19, 2022. It is now read-only.

tovade/ctgs.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ctgs.js

Creating an short url

const { CtgsClient } = require("ctgs.js");

const shortener = new CtgsClient();

//whatever ur doing

await shortener.new("tovade", "https://github.com/tovade");
//returns https://ctgs.ga/tovade if it was success

Getting the url of an slug

const { CtgsClient } = require("ctgs.js");

const shortener = new CtgsClient();

//whatever ur doing

await shortener.get("tovade");
//returns https://github.com/tovade if it exist's

❤ Shorturl made by casper and wrapper made by tovade