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

0.0.2 • Public • Published

BAIDU OSS UPLOAD

Usage

const {SDK} =require('@voyo/baidu-bos');

const sdk=new SDK({
  ak:'xxxx',
  sk:'xxxx',
  endpoint:'https://fsh.bcebos.com',
  bucket:'bucketName'
});

uploadDir

sdk.putDir({
  nativeDirPath:"/dist",    // native path
  targetDirPath:"/urlPath"  // bos path
}).then((result)=>{
  ...
})

uploadDirWithGzip

upload dir file with auto compress file

sdk.putDirGzip({
  nativeDirPath:"/dist",
  targetDirPath:"/urlPath" 
}).then(result=>{
  ...
})

Readme

Keywords

Package Sidebar

Install

npm i @voyo/baidu-bos

Weekly Downloads

0

Version

0.0.2

License

ISC

Unpacked Size

15.4 kB

Total Files

19

Last publish

Collaborators

  • zhantewei
  • echo_hx
  • lansang
  • lousicong
  • buildstrap