π©οΈ Cloudku Uploader
Cloudku Uploader is a lightweight Node.js package that makes it easy to upload files to CloudkuImages.
It supports both CommonJS (CJS) and ECMAScript Modules (ESM).




π¦ Installation
npm install cloudku-uploader
π Usages
1. CommonJS (CJS)
const uploadFile = require('cloudku-uploader');
const fs = require('fs');
(async () => {
const buffer = fs.readFileSync('example.jpg');
const result = await uploadFile(buffer, 'example.jpg');
console.log(result);
})();
2. ECMAScript Modules (ESM)
import uploadFile from 'cloudku-uploader';
import fs from 'fs';
(async () => {
const buffer = fs.readFileSync('example.jpg');
const result = await uploadFile(buffer, 'example.jpg');
console.log(result);
})();
π Api Responses Structure
status | String | Upload status: ("success") / ("Error) |
url | String | Direct link to uploaded file |
fileName | String | Final uploaded file name |
size | Number | File size in readable format (KB, MB) |
type | String | MIME type of the file |
info | String | Official channel for info & support |
π₯ API Response
{
"status": "success",
"url": "https://cloudkuimages.com/uploads/example.jpg",
"fileName": "example.jpg",
"size": "1.27 MB",
"type": "image/jpeg",
"information": "https://cloudkuimages.com/ch"
}
π‘ 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: Cloudkuimages
π¬ WhatsApp: channels
π²Github: GitHub
π¨βπ» Author