0.4.0 • Published 11 months ago

@teojs/all-in-oss v0.4.0

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months ago

@teojs/all-in-oss

整合各家对象存储服务的接口

目前只整合了阿里云、华为云的对象存储服务,后续会整合其他对象存储服务。

如何使用

安装

pnpm add @teojs/all-in-oss

使用

<script setup lang="ts">
  import useOSS, { aliyun } from '@teojs/all-in-oss'

  const oss = useOSS(aliyun, {
    region: '<your-region>',
    bucket: '<your-bucket>s',
    accessKeyId: '<your-accessKeyId>',
    accessKeySecret: '<your-accessKeySecret>',
    stsToken: '<your-stsToken>',
  })

  const res = await oss.client?.multipartUpload(name, file.file)
</script>
0.4.0

11 months ago

0.3.2

11 months ago

0.3.1

11 months ago

0.3.0

11 months ago

0.2.5

11 months ago

0.2.4

11 months ago

0.2.1

11 months ago

0.2.0

11 months ago

0.1.1

11 months ago

0.1.0

11 months ago

0.0.9

11 months ago

0.0.8

11 months ago

0.0.5

11 months ago