code: function(basepath, type, redirect) {
        settings["basepath"] = ('' + (basepath == null ? settings["basepath"] : basepath))
          .replace(/(?:^|\/)[^\/]*$/, '/');
        settings["type"] = type == null ? settings["type"] : type;
        settings["redirect"] = redirect == null ? settings["redirect"] : !!redirect;
      }
docs: Setting library initialization
  
  @param {null|String} [basepath] The base path to the site; defaults to the root "/".
  @param {null|String} [type] Substitute the string after the anchor; by default "/".
  @param {null|Boolean} [redirect] Enable link translation.