nationstates.js
Version:
A wrapper to interact with the NationStates API.
9 lines (8 loc) • 335 B
TypeScript
/**
* Parses XML into a JSON object.
* @author The xmLParser is based on the following written by Auralia:
* https://github.com/auralia/node-nsapi/blob/master/src/api.ts#L25
* @param {string} xml The XML to parse.
* @return data promise returning a JSON object.
*/
export declare function parseXml(xml: string): Promise<object>;