camtjs
Version:
JS package to work with CAMT transactions
18 lines (17 loc) • 512 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.parseStringToXml = void 0;
const xml2js_1 = require("xml2js");
const parseStringToXml = (xml, options) => {
return new Promise((resolve, reject) => {
(0, xml2js_1.parseString)(xml, options || {}, (err, result) => {
if (err) {
reject(err);
}
else {
resolve(result);
}
});
});
};
exports.parseStringToXml = parseStringToXml;