Skip to content

A lightweight and extensible wrapper for uploading files to multiple file hosting services such as Catbox, Litterbox, and others. Designed for developers who need a unified, consistent, and easy-to-use interface for automated or programmatic file uploads.

License

Notifications You must be signed in to change notification settings

VryptLab/up-clouds

Repository files navigation

up-clouds

npm version npm downloads License: MIT TypeScript

up-clouds is a Node.js/TypeScript package for uploading files to various cloud file hosting services such as Catbox and Litterbox, with a consistent, modular, and easy-to-use API.


Installation

npm install up-clouds
# or
yarn add up-clouds
# or
pnpm add up-clouds

Usage

Catbox

import { catboxUpload } from "up-clouds";

async function main() {
  const result = await catboxUpload("./example.png");
  console.log("Uploaded to:", result);
}

main();

Litterbox

import { litterboxUpload } from "up-clouds";

async function main() {
  const result = await litterboxUpload("./example.png", { time: "24h" });
  console.log("Uploaded to:", result);
}

main();

Providers

Catbox

  • Permanent upload, suitable for files intended for long-term storage.

Litterbox

  • Temporary upload with expiration options:
    • 1h (1 hour)
    • 12h (12 hours)
    • 24h (1 day)
    • 72h (3 days)

Pmof2 (coming soon)

  • Upload with additional features (available in a future release).

License

This project is licensed under the MIT License.

About

A lightweight and extensible wrapper for uploading files to multiple file hosting services such as Catbox, Litterbox, and others. Designed for developers who need a unified, consistent, and easy-to-use interface for automated or programmatic file uploads.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published