1.0.0 • Published 4 years ago

@haywael/upload-to-oss-sync v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

将文件上传到oss脚本


const uploadToOss = require('@haywael/upload-to-oss-sync')
const path = require('path')

const config = {
  region: 'your_region',
  accessKeyId: 'your_accessKeyId',
  accessKeySecret: 'your_accessKeySecret',
  bucket: 'your_bucket'
}
const osspath = 'demo/1'
const local = path.resolve(__dirname, './dist')
uploadToOss({
  config,
  local,
  osspath
})
1.0.0

4 years ago