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).
npm install cloudku-uploader
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);
})();
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);
})();
Field | Type | Description |
---|---|---|
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"
}
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.
Got questions or feedback? Reach out: 🌐 Website: Cloudkuimages 💬 WhatsApp: channels 🎲Github: GitHub