1.0.0 • Published 4 years ago

egg-minio-client v1.0.0

Weekly downloads
2
License
MIT
Repository
github
Last release
4 years ago

egg-minio

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

Plugin for minio client

Install

$ npm i egg-minio --save

Usage

// {app_root}/config/plugin.js
exports.minio = {
  enable: true,
  package: "egg-minio"
};
// {app_root}/config/config.default.js
config.minio = {
  endPoint: "127.0.0.1",
  port: parseInt(9000),
  useSSL: false,
  accessKey: "accessKey",
  secretKey: "secretKey"
};

Example

// put
app.minio.putObject(this.config.ossBucketName, filename, stream);

License

MIT