@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]

Package Sidebar

Install

npm i @voyo/ali-oss

Weekly Downloads

0

Version

1.0.2

License

ISC

Unpacked Size

11.5 kB

Total Files

8

Last publish

Collaborators

  • zhantewei
  • echo_hx
  • lansang
  • lousicong
  • buildstrap