up-clouds
v2.1.5
Published
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.
Maintainers
Readme
up-clouds
up-clouds adalah package Node.js/TypeScript untuk mengunggah file ke berbagai layanan cloud file hosting seperti Catbox dan Litterbox, dengan API yang konsisten, modular, dan mudah digunakan.
Instalasi
npm install up-clouds
# atau
yarn add up-clouds
# atau
pnpm add up-cloudsPenggunaan
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
- Upload permanen, cocok untuk file yang ingin disimpan jangka panjang.
Litterbox
- Upload sementara dengan opsi kedaluwarsa:
1h(1 jam)12h(12 jam)24h(1 hari)72h(3 hari)
Pmof2 (coming soon)
- Upload dengan fitur tambahan (akan tersedia pada rilis berikutnya).
Lisensi
Proyek ini dilisensikan di bawah MIT License.
