1.1.1 • Published 4 years ago

syn-oss v1.1.1

Weekly downloads
4
License
ISC
Repository
github
Last release
4 years ago

下载仓库

git clone https://github.com/Moking1997/syn-oss.git

示例

const SynOSS = require('syn-oss')

async function main() {
    const oss = new SynOSS({
        region: '<Your region>',
        accessKeyId: '<Your AccessKeyId>',
        accessKeySecret: '<Your AccessKeySecret>',
        bucket: 'Your bucket name'
    })
    // getOssFileList(dir, marker)
    await oss.getOssFileList(ossPath)
    // readOssDir(ossPath, marker)
    await oss.readOssDir(ossPath, )
    // Upload(ossPath, localPath)
    await oss.Upload('/text.js', './test.js')
    // get(ossPath, localPath) 
    await oss.downloadDir('text.js', './test.js')
    // UploadDir(ossDir, localDir) 
    await oss.UploadDir('/test', './test')
    // downloadDir(ossDir, localDir) 
    await oss.downloadDir('test', './test')
}

main()
1.1.1

4 years ago

1.1.0

4 years ago

1.0.9

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago