samsamson33 / catbox.js

API Wrapper for https://catbox.moe

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

catbox.js

A (WIP) wrapper for the Catbox api.

NPM

Source

The source can be found at samsamson33/catbox.js on GitHub.

Use

const CatboxClient = require("catbox.js");

//Leave `userHash` out to use the API anonymously
const client = new CatboxClient("<userHash>");

//Upload a file
client.fileUpload("/path/to/file.png").then(url => console.log(url));

//Upload a file from a url
client.urlUpload("https://example.org/path/to/file.png").then(url => console.log(url));

//Delete files (cannot be done anonymously)
client.deleteFiles(["filename.png", "abcdef.jpg"]);

About

API Wrapper for https://catbox.moe


Languages

Language:JavaScript 100.0%