πŸš€ Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more β†’
Socket
DemoInstallSign in
Socket

cloudku-uploader

Package Overview
Dependencies
Maintainers
2
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cloudku-uploader

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

2.2.5
latest
Source
npm
Version published
Weekly downloads
13K
46.81%
Maintainers
2
Weekly downloads
Β 
Created
Source

🌩️ 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).

npm version
License: MIT
Node.js
Support CJS & 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

FieldTypeDescription
statusStringUpload status: ("success") / ("Error)
urlStringDirect link to uploaded file
fileNameStringFinal uploaded file name
sizeNumberFile size in readable format (KB, MB)
typeStringMIME type of the file
infoStringOfficial 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.

πŸ“„ See full LICENSE file for complete details.

πŸ™‹ Support & Contact

Got questions or feedback? Reach out: 🌐 Website: Cloudkuimages πŸ’¬ WhatsApp: channels 🎲Github: GitHub

πŸ‘¨β€πŸ’» Author

  • AlfiDev - GitHub | Website

Keywords

cloudku

FAQs

Package last updated on 20 Apr 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts