index.js
function getLabel(app, options) {
  if (typeof options.getLabel === 'function') {
    return options.getLabel(app, options);
  }
  return app.full_name || app.nickname || app.name;
}
function getLabel(app, options) {
  if (typeof options.getLabel === 'function') {
    return options.getLabel(app, options);
  }
  return app.full_name || app.nickname || app.name;
}
function getLabel ( app , options ) { if ( typeof options . getLabel === 'function' ) { return options . getLabel ( app , options ) ; } return app . full_name || app . nickname || app . name ; }
Figure out a label to add for a node in the tree.

@param  {Object} `app` Current node/app being iterated over
@param  {Object} `options` Pass `getLabel` on options to handle yourself.
@return {String} label to be shown
@api public
@name  options.getLabel
Figure out a label to add for a node in the tree .