minio-cdn-cnpm
v1.0.1
Published
Minio API Wrapper for cnpm NFS with CDN
Downloads
11
Readme
minio-cdn-cnpm
minio wrapper for cnpmjs.org with CDN
Install
yarn add minio-cdn-cnpmUsage
const Minio = require('minio-cdn-cnpm');
const minioCnpm = new Minio(bucket, {
endPoint: 'play.minio.io',
port: 9000,
secure: true,
accessKey: 'Q3AM3UQ867SPQQA43P2F',
secretKey: 'zuf+tfteSlswRu7BJ86wekitnifILbZam1KYY3TG'
});API
- constructor(bucketName, minioOptions, cdnOptions)
- bucketName: Name of bucket
- minioOptions: option for connect to minio, please refers to Minio Document
- cdnOptions:
- hostname: hostname for public access
- inSecure (boolean): allow to use http (default: false)
