New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

incdn

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

incdn - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

26

bin.js
#!/usr/bin/env node
const path = require('path');
const fs = require('fs');
const chalk = require('chalk');
const cp = require('cli-progress');
const cliProgress = require('cli-progress');
const colors = require('ansi-colors');
console.clear()
const b1 = new cp.SingleBar({
format: 'Uploading Files |' + colors.cyan('{bar}') + '| {percentage}% || {value}/{total} Chunks || Speed: {speed}',
barCompleteChar: '\u2588',
barIncompleteChar: '\u2591',
hideCursor: true
});
b1.start(100, 0, {
speed: "N/A"
});
b1.increment();
const upload = require('./file')

@@ -18,6 +33,13 @@ if (process.argv.length < 3) {

let f = await upload(fileBuffer, ext)
console.clear()
return console.log(JSON.stringify(f, null, 2))
b1.update(100);
b1.stop();
let fr = f.result
console.log(chalk.green.bold(`🛄 File have been uploaded to cdn.indocoder.it`));
console.log(chalk.cyan(`🪤 File Name : ${fr.originalname}`));
console.log(chalk.cyan(`📁 File Size : ${fr.filesize}`));
console.log(chalk.cyan(`📎 File Url : ${fr.url}`));
console.log(chalk.cyan(`📣 Direct Url: ${fr.url_file}`));
return console.log(chalk.blue.bold(`\nMade with 💖 by Ditzzsenpai`));
process.exit(1);
}
main(filePath, extension)

5

package.json
{
"name": "incdn",
"version": "1.0.2",
"version": "1.0.3",
"description": "A utility for uploading files to https://cdn.indocoder.it",

@@ -28,3 +28,6 @@ "main": "bin.js",

"dependencies": {
"ansi-colors": "^4.1.3",
"axios": "^0.24.0",
"chalk": "4.1.2",
"cli-progress": "^3.12.0",
"file-type": "^16.5.3",

@@ -31,0 +34,0 @@ "form-data": "^5.1.1",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc