code: function cordovaCreateLegacyAdapter (dir, id, name, cfg, extEvents) {
      // Unwrap and shallow-clone that nasty nested config object
      const opts = Object.assign({}, ((cfg || {}).lib || {}).www);
  
      if (id) opts.id = id;
      if (name) opts.name = name;
      if (extEvents) opts.extEvents = extEvents;
  
      return cordovaCreate(dir, opts);
  }
docs: Legacy interface. See README for documentation