index.js
function CDNUp(bucket, options) {
  options = options || {};

  this.sharding = !!options.sharding;
  this.urls = arrayify(options.url || options.urls);
  this.mime = options.mime || {};
  this.check = options.check;
  this.bucket = bucket;
  this.client = pkgcloud.storage.createClient(options.pkgcloud || {});
  this.acl = options.acl;
  this.subdomain = options.subdomain;
}
function CDNUp(bucket, options) {
  options = options || {};

  this.sharding = !!options.sharding;
  this.urls = arrayify(options.url || options.urls);
  this.mime = options.mime || {};
  this.check = options.check;
  this.bucket = bucket;
  this.client = pkgcloud.storage.createClient(options.pkgcloud || {});
  this.acl = options.acl;
  this.subdomain = options.subdomain;
}
function CDNUp ( bucket , options ) { options = options || { } ; this . sharding = ! ! options . sharding ; this . urls = arrayify ( options . url || options . urls ) ; this . mime = options . mime || { } ; this . check = options . check ; this . bucket = bucket ; this . client = pkgcloud . storage . createClient ( options . pkgcloud || { } ) ; this . acl = options . acl ; this . subdomain = options . subdomain ; }
CDNup is our CDN management API.

Options:

- sharding: Use DNS sharding.
- env: Optional forced environment.
- url/urls: Array or string of a URL that we use to build our assets URLs
- mime: Custom lookup object.

@constructor
@param {String} bucket bucket location of where you want the files to be stored.
@param {Object} options Configuration for the CDN uploading.
@api public
CDNup is our CDN management API .