yqf-upyun-js-sdk
v2.1.0
Published
又拍云 JS SDK
Downloads
14
Readme
安装
npm install yqf-upyun-js-sdk
使用
import { Upyun } from "yqf-upyun-js-sdk";
/** 上传云服务 */
const upyunClient = new Upyun('your-bucket', async (bucket: string, date: string, policy: string) => {
const { authorization } = await ...({
bucket,
date,
policy,
})
return {
authorization,
}
});
const upyunFile = await upyunClient.uploadImage(file);