td-upyun
TypeScript icon, indicating that this package has built-in type declarations

2.0.0 • Public • Published

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:pass@192.168.2.1:3128');
const client = new Client(service);
client.listDir('test', {limit: 1000}).then(res => {});

Readme

Keywords

none

Package Sidebar

Install

npm i td-upyun

Weekly Downloads

6

Version

2.0.0

License

MIT

Unpacked Size

186 kB

Total Files

18

Last publish

Collaborators

  • zhengfeng.yao