code: function renameKey(fp, opts) {
    if (opts && opts.renameKey) {
      return opts.renameKey(fp, opts);
    }
    return basename(fp);
  }
docs: Rename object keys with a custom function.
  If no function is passed, the basname is
  returned.