scripts/osrm-runner.js
function ServerDetails(x) {
    if (!(this instanceof ServerDetails)) return new ServerDetails(x);
    const v = x.split(':');
    this.hostname = (v[0].length > 0) ? v[0] : '';
    this.port = (v.length > 1) ? Number(v[1]) : 80;
}
function ServerDetails(x) {
    if (!(this instanceof ServerDetails)) return new ServerDetails(x);
    const v = x.split(':');
    this.hostname = (v[0].length > 0) ? v[0] : '';
    this.port = (v.length > 1) ? Number(v[1]) : 80;
}
function ServerDetails ( x ) { if ( ! ( this instanceof ServerDetails ) ) return new ServerDetails ( x ) ; const v = x . split ( ':' ) ; this . hostname = ( v [ 0 ] . length > 0 ) ? v [ 0 ] : '' ; this . port = ( v . length > 1 ) ? Number ( v [ 1 ] ) : 80 ; }
Command line arguments
Command line arguments