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).
đĻ 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