git clone https://github.com/zjy2931/alioss-download.git
const downloadDir = require('alioss-d')({
{
region: '<Your region>',
accessKeyId: '<Your AccessKeyId>',
accessKeySecret: '<Your AccessKeySecret>',
bucket: 'Your bucket name'
}
})
/*
osspath
localpath
*/
await downloadDir('test', './test')