code: function setupModule() {
  
      // Shims
  
      if(typeof self === 'undefined') {
        global.self = global;
      }
  
      if(!self.URL) {
        self.URL = self.webkitURL;
      }
  
      // Make sure are on https in browser,
      // otherwise crypto etc. wont work.
  
      if(isBrowser() &&
          self.location.protocol === 'http:' &&
          self.location.hostname !== 'localhost' &&
          !self.location.hostname.startsWith('192.168.')) {
        self.location.href = self.location.href.replace(/http/, 'https');
      }
  
      // Setup / export module
  
      da = self.direape || {};
  
      if(typeof module === 'undefined') {
        self.direape = da;
      } else {
        module.exports = da;
      }
  
      da.test = test;
  
      // Define name of testsuite
  
      testSuite('direape');
    }
docs: ## Module Setup / Main