lib/express-load.js
function getName(script) {
  var script = path.basename(script, path.extname(script)).replace(/[^a-zA-Z0-9]/g, '.')
    , parts = script.split('.')
    , name = parts.shift();

  if (parts.length) {
    for (var p in parts) {
      name += parts[p].charAt(0).toUpperCase() + parts[p].substr(1, parts[p].length);
    }
  }

  return name;
}
function getName(script) {
  var script = path.basename(script, path.extname(script)).replace(/[^a-zA-Z0-9]/g, '.')
    , parts = script.split('.')
    , name = parts.shift();

  if (parts.length) {
    for (var p in parts) {
      name += parts[p].charAt(0).toUpperCase() + parts[p].substr(1, parts[p].length);
    }
  }

  return name;
}
function getName ( script ) { var script = path . basename ( script , path . extname ( script ) ) . replace ( / [^a-zA-Z0-9] / g , '.' ) , parts = script . split ( '.' ) , name = parts . shift ( ) ; if ( parts . length ) { for ( var p in parts ) { name += parts [ p ] . charAt ( 0 ) . toUpperCase ( ) + parts [ p ] . substr ( 1 , parts [ p ] . length ) ; } } return name ; }
Get Name - formats name into method-friendly version from script path.

@param script {String} Script location.
@return name {String} Name of script.
Get Name - formats name into method - friendly version from script path .