Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

td-upyun

hihl3MIT2.0.0TypeScript support: included

支持代理的upyun客户端-node版

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