Socket
Book a DemoInstallSign in
Socket

@letruxux/file-upload

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@letruxux/file-upload

Zero dependencies package to upload anonymous files to different hosting sites easily.

1.0.0
latest
Source
npmnpm
Version published
Maintainers
1
Created
Source

@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);

Keywords

file-upload

FAQs

Package last updated on 17 Apr 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.