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

Latest commit

 

History

History
29 lines (18 loc) · 615 Bytes

readme.md

File metadata and controls

29 lines (18 loc) · 615 Bytes

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