1.0.2 • Published 8 years ago

yuguo_alisdk v1.0.2

Weekly downloads
4
License
ISC
Repository
github
Last release
8 years ago

yuguo_alisdk

yuguo_alisdk is created to upload files from local project to Ali cloud cdn. You can directly input folder name or file name, use commas

start

Install dependencies,run:

npm install yuguo_alisdk --save (-g)

Then use:

alisdk folderName,localFileName,localFileName,....

set conf

you should create a folder named conf on the process path,and then create a file named bucket.json in the conf folder the bucket,json example:

{
  "bucketName":"<Your region>",
  "region": "参数是指您申请OSS服务时的区域,例如【oss-cn-hangzhou】",
  "accessKeyId": "<Your AccessKeyId>",
  "accessKeySecret": "<Your AccessKeySecret>"
}

example

alisdk public/1.gif,upload
开始上传啦~
upload/a.js  上传成功!
upload/test1/test11.js  上传成功!
upload/test1/test12.js  上传成功!
upload/test2/test21.js  上传成功!
upload/test2/test22.js  上传成功!
public/1.gif  上传成功!
文件都上传成功了!棒棒哒~(*^﹏^*)
一共耗时:3.325秒
1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago