1.0.8 • Published 4 years ago
egg-cos2 v1.0.8
egg-cos2
Install
$ npm i egg-cos2 --save
Usage
// {app_root}/config/plugin.js
exports.cos = {
enable: true,
package: 'egg-cos2',
};
Configuration
// {app_root}/config/config.default.js
exports.cos = {
Bucket: '',
Region: '',
SecretId: '',
SecretKey: '',
};
see config/config.default.js for more detail.
Example
this.app.cos2.putObject(/* ... */);
Questions & Suggestions
Please open an issue here.