UNPKG
camtjs
Version:
latest (0.0.7)
0.0.7
0.0.6
0.0.5
0.0.4
0.0.3
0.0.2
JS package to work with CAMT transactions
github.com/proohit/camtjs
proohit/camtjs
camtjs
/
dist
/
esm
/
xml-parser.js
14 lines
(13 loc)
•
350 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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); } }); }); };