Skip to content

katu-project/utils

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

卡兔项目 utils 库

安装

npm i @katucloud/utils

加载

const { cdn, cos } = require('@katucloud/utils')

使用

通用配置

const config = {
    SecretId: '',
    SecretKey: '',
    // cdn
    // cos
    Bucket: '',
    Region: ''
}

cdn

cdn.refreshDirs

cdn.getDomainList

cos

cos.getList

cos.uploadFile

cos.uploadFolder

cos.deleteFile

cos.deleteDir

cos.createCompressTask