code: function getProjectName(ctx, projectRoot) {
    var cordova_util = ctx.requireCordovaModule('cordova-lib/src/cordova/util');
    var xml = cordova_util.projectConfig(projectRoot);
    var ConfigParser;
  
    // If we are running Cordova 5.4 or abova - use parser from cordova-common.
    // Otherwise - from cordova-lib.
    try {
      ConfigParser = ctx.requireCordovaModule('cordova-common/src/ConfigParser/ConfigParser');
    } catch (e) {
      ConfigParser = ctx.requireCordovaModule('cordova-lib/src/configparser/ConfigParser')
    }
  
    return new ConfigParser(xml).name();
  }
docs: Get name of the current project.
  
  @param {Object} ctx - cordova context instance
  @param {String} projectRoot - current root of the project
  
  @return {String} name of the project