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