@voyo/ali-oss
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

Install

npm i @voyo/ali-oss

Usage

const {AliYoOSS} =require("@voyo/ali-oss");

const oss=new AliYoOSS({
  accessKeyId: "",
  accessKeySecret:"",
  region: "",
  bucket: ""
});
// upload file
oss.putFile("/remote/1.jpg","/native/1.jpg").then(result=>{});
// upload directory
oss.putDir("/remote/dir","/native/dir").then(result=>{});
// update httpHeaders of file.
oss.putHeader("/remote/file",{"cache-control":"max-age=20000"});

use original oss method. Reference.

oss.oss[method]

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.2
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.2
    1
  • 1.0.1
    0
  • 1.0.0
    0

Package Sidebar

Install

npm i @voyo/ali-oss

Weekly Downloads

1

Version

1.0.2

License

ISC

Unpacked Size

11.5 kB

Total Files

8

Last publish

Collaborators

  • zhantewei
  • echo_hx
  • lansang
  • lousicong
  • buildstrap