/ctgs.js

wrapper for CasperTheGhost's url shortener (https://ctgs.ga)

Primary LanguageTypeScript

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