How to use the xml2js.parseStringAsync function in xml2js

To help you get started, we’ve selected a few xml2js examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github StoDevX / AAO-React-Native / source / lib / stalkernet.js View on Github external
function parseStalkernetResults(data) {
	return xml2js
		.parseStringAsync(data)
		.then(results => results['Results']['Person'])
		.then(people => people.map(simplifySingleStalkernetResult))
		.then(people => people.filter(removeSillyStalkernetResults))
}
github StoDevX / AAO-React-Native / source / lib / stalkernet.js View on Github external
function parseStalkernetResults(data) {
  return xml2js
    .parseStringAsync(data)
    .then(results => results['Results']['Person'])
    .then(people => people.map(simplifySingleStalkernetResult))
    .then(people => people.filter(removeSillyStalkernetResults))
}