JSPM

fadzzz-uploader

0.0.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 4
  • Score
    100M100P100Q61538F
  • License MIT

A powerful and easy-to-use uploader for all file types using FadzzzCloud API. Supports auto conversion, fast upload, and modern Node.js support.

Package Exports

  • fadzzz-uploader

Readme

đŸŒŠī¸ Fadzzz Uploader

Fadzzz Uploader is a lightweight Node.js package that makes it easy to upload files to FadzzzCloud.
It supports both CommonJS (CJS) and ECMAScript Modules (ESM).

npm version
License: MIT
Node.js
Support CJS & ESM


đŸ“Ļ Installation

npm install fadzzz-uploader

🚀 Usages

1. CommonJS (CJS)

const uploadFile = require('fadzzz-uploader');
const fs = require('fs');

(async () => {
  const result = await uploadFile('/path/to/your/file.png');
  console.log(result);
})();

2. ECMAScript Modules (ESM)

import uploadFile from 'fadzzz-uploader';
import fs from 'fs';

(async () => {
  const result = await uploadFile('/path/to/your/file.png');
  console.log(result);
})();

📌 Api Responses Structure

Field Type Description
status String Upload status: ("true") / ("false")
message String Information on whether the file was uploaded successfully or not
filename String Final uploaded file name
url String Direct link to uploaded file
size Number File size in readable format (KB, MB)
type String MIME type of the file

đŸ“Ĩ API Response

{
  success: true,
  message: 'Berkas berhasil di-upload!',
  filename: 'uploads-12345678910.png',
  url: 'https://fadzzzcloud.biz.id/files/uploads-12345678910.png',
  size: '60.64 KB',
  type: 'image/png'
}

This package is under a Custom MIT License:

You may not copy, modify, resell, or redistribute this package without explicit permission. Violators will be prosecuted under Indonesian and international copyright law.

📄 See full LICENSE file for complete details.

🙋 Support & Contact

Got questions or feedback? Reach out: 🌐 Website: FadzzzCloud đŸ’Ŧ WhatsApp: Channels 🎲 Github: GitHub


👨‍đŸ’ģ Author