egg-cos

tencent cloud cos plugin for egg

Usage no npm install needed!

<script type="module">
  import eggCos from 'https://cdn.skypack.dev/egg-cos';
</script>

README

egg-cos

NPM version build status Test coverage David deps Known Vulnerabilities npm download

Install

$ npm i egg-cos --save

Usage

// {app_root}/config/plugin.js
exports.cos = {
  enable: true,
  package: 'egg-cos',
};

Configuration

// {app_root}/config/config.default.js
exports.cos = {
  client: {
    secretId: '',
    secretKey: '',
    bucket: '',
    region: '',
  }
};

Init in egg agent, default is false:

exports.cos = {
  useAgent: true,
};

Questions & Suggestions

Please open an issue here.

License

MIT