UNPKG

cloudflare-r2

Version:
13 lines (9 loc) 277 B
var S3 = require('amazon-s3'); function R2(config) { config.host = `${config.accountId}.r2.cloudflarestorage.com`; config.pathBucket = true; S3.call(this, config); } R2.prototype = Object.create(S3.prototype); R2.prototype.constructor = R2; module.exports = R2;