@letruxux/file-upload
Zero dependencies package to upload anonymous files to different hosting sites easily.
[!IMPORTANT]
Please donate and support the owners of the websites you use if you can. And obviously don't abuse any of the services provided.
Supported hosts
catbox | 200MB | No expiry, all files are permanently on catbox. |
0x0 | 512MB | 30 days to a year (more info on website) |
litterbox | 1GB | 1 hour to 3 days (user choice) |
Installation
npm install @letruxux/file-upload
bun add @letruxux/file-upload
pnpm add @letruxux/file-upload
yarn add @letruxux/file-upload
Usage
import { catbox, litterbox, zeroX0 } from "@letruxux/file-upload";
const filename = "image.png";
const buf = await readFile(filename);
const blob = new Blob([buf]);
const catboxUrl = await catbox(blob, filename);
const litterboxUrl = await litterbox(blob, filename);
const zeroX0Url = await zeroX0x(blob, filename);