td-upyun
v2.0.0
Published
支持代理的upyun客户端-node版
Downloads
15
Readme
node-upyun
支持代理的upyun客户端-node版
用法基本同upyun/node-sdk 但是仅支持usage、listDir、deleteFile、putFile、deleteDir、mkdir、getFile、headFile等方法 Service支持第4个参数proxy,如new Service('serviceName', 'operatorName', 'password', 'http://username:password@host:port');
import upyun from 'td-upyun';
const { Client, Service } = upyun;
const service = new Service('test','test','pass','http://name:[email protected]:3128');
const client = new Client(service);
client.listDir('test', {limit: 1000}).then(res => {});