lib/info.js
function getObject(section) {
  var o = {}
    , i
    , k
    , name
    , method
    , sections = section ? [section] : keys
    , rusage = proc.usage();

  for(i = 0;i < sections.length;i++) {
    k = sections[i];
    name = k.charAt(0).toUpperCase() + k.substr(1);
    method = 'get' + name
    o[k] = {
      header: name,
      data: this[method](rusage)
    }
  }
  return o;
}
function getObject(section) {
  var o = {}
    , i
    , k
    , name
    , method
    , sections = section ? [section] : keys
    , rusage = proc.usage();

  for(i = 0;i < sections.length;i++) {
    k = sections[i];
    name = k.charAt(0).toUpperCase() + k.substr(1);
    method = 'get' + name
    o[k] = {
      header: name,
      data: this[method](rusage)
    }
  }
  return o;
}
function getObject ( section ) { var o = { } , i , k , name , method , sections = section ? [ section ] : keys , rusage = proc . usage ( ) ; for ( i = 0 ; i < sections . length ; i ++ ) { k = sections [ i ] ; name = k . charAt ( 0 ) . toUpperCase ( ) + k . substr ( 1 ) ; method = 'get' + name o [ k ] = { header : name , data : this [ method ] ( rusage ) } } return o ; }
Get an info object.
Get an info object .