src/platforms/PlatformApiPoly.js
function getPlatformVersion (platformRoot) {
    var versionFile = path.join(platformRoot, 'cordova/version');

    if (!fs.existsSync(versionFile)) {
        return null;
    }

    var version = shell.cat(versionFile).match(/VERSION\s=\s["'](.*)["'];/m);
    return version && version[1];
}
function getPlatformVersion (platformRoot) {
    var versionFile = path.join(platformRoot, 'cordova/version');

    if (!fs.existsSync(versionFile)) {
        return null;
    }

    var version = shell.cat(versionFile).match(/VERSION\s=\s["'](.*)["'];/m);
    return version && version[1];
}
function getPlatformVersion ( platformRoot ) { var versionFile = path . join ( platformRoot , 'cordova/version' ) ; if ( ! fs . existsSync ( versionFile ) ) { return null ; } var version = shell . cat ( versionFile ) . match ( / VERSION\s=\s["'](.*)["']; / m ) ; return version && version [ 1 ] ; }
Gets platform version from 'version' file

@param   {String}  platformRoot  Platform location
@return  {String|null}           Stringified version of platform or null
if it is not possible to retrieve version
Gets platform version from version file