Skip to content

liaoyu/cdn-qiniu

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cdn-qiniu

七牛cdn上传模块

Usage

First, install cdn-qiniu as a development dependency:

npm install cdn-qiniu --save

Then

var qnUpload = require('cdn-qiniu');

qnUpload({ accessKey: 'xxxxxxx', secretKey: 'xxxx', bucket: "xxxx", domain: '', // 该 bucket 对应的域名,可不填 src: 'dir/**', dest: 'key/', pathMap: { // 上传路径与实际文件路径的映射 '/Users/tmp/2017/2390392039.png': '/Users/name/test.png' } });

About

七牛cdn上传模块

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%