UNPKG

camtjs

Version:

JS package to work with CAMT transactions

14 lines (13 loc) 350 B
import { parseString } from 'xml2js'; export const parseStringToXml = (xml, options) => { return new Promise((resolve, reject) => { parseString(xml, options || {}, (err, result) => { if (err) { reject(err); } else { resolve(result); } }); }); };