code: function queryPluginVersion(pluginDir) {
          var pluginXml = path.join(pluginDir, 'plugin.xml');
  
          var domPluginXml = jsdom.jsdom(fs.readFileSync(pluginXml).toString());
          return $(domPluginXml).find('plugin').attr('version');
      }
docs: query plugin version.