code: function (folderName, folderItem) {
  	if (folderItem.hasOwnProperty('useragent')) {
  		folderItem.useragent.forEach(function (useragent) {
  			var parsed;
  			useragent = useragent.$;
  			uaParser.setUA(useragent.useragent);
  			parsed = uaParser.getResult();
  			if (typeof useragent.useragent === 'string' && useragent.useragent.length > 0) {
  				useragents.push({
  					folder: folderName,
  					description: useragent.description,
  					userAgent: useragent.useragent,
  					appCodename: useragent.appcodename,
  					appName: useragent.appname,
  					appVersion: useragent.appversion,
  					platform: useragent.platform,
  					vendor: useragent.vendor,
  					vendorSub: useragent.vendorsub,
  					browserName: parsed.browser.name || '',
  					browserMajor: parsed.browser.major || '',
  					browserVersion: parsed.browser.version || '',
  					deviceModel: parsed.device.model || '',
  					deviceType: parsed.device.type || '',
  					deviceVendor: parsed.device.vendor || '',
  					engineName: parsed.engine.name || '',
  					engineVersion: parsed.engine.version || '',
  					osName: parsed.os.name || '',
  					osVersion: parsed.os.version || '',
  					cpuArchitecture: parsed.cpu.architecture || ''
  				});
  			}
  		});
  	}
  }
docs: functions