1.0.0 • Published 8 months ago

@letruxux/file-upload v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
8 months ago

@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

WebsiteMax file sizeExpiry
catbox200MBNo expiry, all files are permanently on catbox.
0x0512MB30 days to a year (more info on website)
litterbox1GB1 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";

/* Load image from file */
const filename = "image.png";
const buf = await readFile(filename);
const blob = new Blob([buf]);

/* Upload on catbox, litterbox and 0x0 */
const catboxUrl = await catbox(blob, filename);
const litterboxUrl = await litterbox(blob, filename);
const zeroX0Url = await zeroX0x(blob, filename);
1.0.0

8 months ago

0.0.3

8 months ago

0.0.2

8 months ago

0.0.1

8 months ago