Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

qiao.ext.cos

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

qiao.ext.cos

tencent cos upload tool on nodejs

  • 0.0.5
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
decreased by-50%
Maintainers
1
Weekly downloads
 
Created
Source

urls

homepage

https://code.insistime.com/qiao.ext.cos

github

https://github.com/insistime/qiao.ext.cos

npm

https://www.npmjs.com/package/qiao.ext.cos

started

install

npm install qiao.ext.cos

config.json

{
	"SecretId"	: "your secret id",
	"SecretKey"	: "your secret kye",
	"Region"	: "your region",
	"Bucket"	: "your bucket"
}

api

uploadFile

'use strict';

var qiaoExtCos 	= require('qiao.ext.cos');
var client	= qiaoExtCos.client(require('./config.json'));

/**
 * upload file demo
 * upload d:/test.js to your bucket's test/test.js
 */
var test = async function(){
	try{
		var destPath	= 'test/test.js';
		var sourceFile 	= 'd:/test.js';
		
		var rs = await qiaoExtCos.uploadFile(client, destPath, sourceFile);
		console.log(rs);
	}catch(e){
		console.log(e);
	}
};

test();

uploadFolder

'use strict';

var qiaoExtCos 	= require('qiao.ext.cos');
var client	= qiaoExtCos.client(require('./config.json'));

/**
 * upload folder
 * upload d:/test folder's files to your bucket's test folder
 */
var test = async function(){
	try{
		var destPath		= 'test2';
		var sourceFolder	= 'd:/test/cocos';
		
		var rs = await qiaoExtCos.uploadFolder(client, destPath, sourceFolder);
		console.log(rs);
	}catch(e){
		console.log(e);
	}
};

test();

also in cli

npm install -g qiao.ext.cos

qcos file 	z:/workspaces/qiao.ext.cos/test/config.json 	d:/test.js	test.js	
qcos folder	z:/workspaces/qiao.ext.cos/test/config.json 	d:/test/cocos	test9 	-i

or

qcos fi 	z:/workspaces/qiao.ext.cos/test/config.json 	d:/test.js 	test.js	
qcos fo		z:/workspaces/qiao.ext.cos/test/config.json 	d:/test/cocos 	test9 	-i

or

qcos | qcos -h for help

version

0.0.1.20190128

  1. 初始化项目
  2. upload file
  3. upload folder
  4. qcos ok
  5. modify md
  6. modify qiao.ext.cos
  7. bin qcos

Keywords

FAQs

Package last updated on 28 Jan 2019

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

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