function normalizePort( value ) {
    const port = parseInt( value, 10 );

    if ( isNaN( port ) ) {
        throw new Error( `No valid port specified; received ${value}` );
    }

    if ( port >= 0 ) {
        // port number
        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( value ) {
    const port = parseInt( value, 10 );
    if ( isNaN( port ) ) {
        throw new Error( `No valid port specified; received ${value}` );
    }
    if ( port >= 0 ) {
        return port;
    }
    return false;
}
function normalizePort ( value ) { const port = parseInt ( value , 10 ) ; if ( isNaN ( port ) ) { throw new Error ( ` ${ value } ` ) ; } if ( port >= 0 ) { return port ; } return false ; }
Normalize a port into a number, string, or false.
Normalize a port into a number string or false .
// port number