function normalizePort(val) {
  var port = parseInt(val, 10);

  if (typeof port === 'number' && port >= 0) {
    // named pipe
    return port;
  }

  return false;
}
/**
 * Normalize a port into a number, string, or false.
 */
Normalize a port into a number, string, or false.
Normalize a port into a number string or false .
function normalizePort(val) {
  var port = parseInt(val, 10);
  if (typeof port === 'number' && port >= 0) {
    return port;
  }
  return false;
}
function normalizePort ( val ) { var port = parseInt ( val , 10 ) ; if ( typeof port === 'number' && port >= 0 ) { return port ; } return false ; }
Normalize a port into a number, string, or false.
Normalize a port into a number string or false .
// named pipe