fadzzz-uploader
v0.0.1
Published
A powerful and easy-to-use uploader for all file types using FadzzzCloud API. Supports auto conversion, fast upload, and modern Node.js support.
Maintainers
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).
📦 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'
}🛡 License & Legal
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
