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.
npm install up-clouds
# or
yarn add up-clouds
# or
pnpm add up-clouds
import { catboxUpload } from "up-clouds";
async function main() {
const result = await catboxUpload("./example.png");
console.log("Uploaded to:", result);
}
main();
import { litterboxUpload } from "up-clouds";
async function main() {
const result = await litterboxUpload("./example.png", { time: "24h" });
console.log("Uploaded to:", result);
}
main();
- Permanent upload, suitable for files intended for long-term storage.
- Temporary upload with expiration options:
1h
(1 hour)12h
(12 hours)24h
(1 day)72h
(3 days)
- Upload with additional features (available in a future release).
This project is licensed under the MIT License.