1.1.1 • Published 1 year ago

s3v2-cnpmcore v1.1.1

Weekly downloads
-
License
ISC
Repository
-
Last release
1 year ago

s3v2-cnpmcore

a S3 storage wrapper which based on aws-sdk 2.x for cnpmcore

Installation

npm i s3v2-cnpmcore

Usage

you should set env variables before run nodejs application in production:

AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE=1
import S3v2Client from 's3v2-cnpmcore';

// ...
// other configuration in cnpmcore
// ...

// api reference(https://docs.aws.amazon.com/sdk-for-javascript/v2/developer-guide/configuring-the-jssdk.html)
config.nfs.client = new S3v2Client({
  endpoint: 'your endpoint',
  key: 'your access key',
  secret: 'your secret key',
  bucket: 'npm',
  // optional
  region: 'eu-west-1', // default is ''
  // optional
  disableURL: true // default is false, set true when S3 provider can not provide anonymous url
})

License

MIT

1.1.1

1 year ago

1.1.0

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago