src/cordova/platform.js
function hostSupports(platform) {
    var p = platforms[platform] || {},
        hostos = p.hostos || null;
    if (!hostos)
        return true;
    if (hostos.indexOf('*') >= 0)
        return true;
    if (hostos.indexOf(process.platform) >= 0)
        return true;
    return false;
}
function hostSupports(platform) {
    var p = platforms[platform] || {},
        hostos = p.hostos || null;
    if (!hostos)
        return true;
    if (hostos.indexOf('*') >= 0)
        return true;
    if (hostos.indexOf(process.platform) >= 0)
        return true;
    return false;
}
function hostSupports ( platform ) { var p = platforms [ platform ] || { } , hostos = p . hostos || null ; if ( ! hostos ) return true ; if ( hostos . indexOf ( '*' ) >= 0 ) return true ; if ( hostos . indexOf ( process . platform ) >= 0 ) return true ; return false ; }
Used to prevent attempts of installing platforms that are not supported on the host OS. E.g. ios on linux.
Used to prevent attempts of installing platforms that are not supported on the host OS . E . g . ios on linux .