Package Exports
- iso20022
- iso20022/dist/main.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (iso20022) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
iso20022 (mx)
Convert ngx-iso-form output json to MX (ISO 20022) message.
Features
- 🔥 Convert ngx-iso-form output json to ISO 20022 payment message
- ⚡️ Supports ISO 20022 XSD Validation
How to Install
- Install npm package iso20022.
Global (For CLI)
npm install -g iso20022Local (For SCRIPT)
npm install iso20022How to Use
Script
JavaScript
const mx = require('iso20022').default;
mx.convert('./camt.053.json', 'urn:iso:std:iso:20022:tech:xsd:camt.053.001.10')
.then(output => console.log(output))
.catch(error => console.error(error));
mx.convertAndValidate('./camt.053.json', 'urn:iso:std:iso:20022:tech:xsd:camt.053.001.10','./camt.053.001.10.xsd')
.then((data) => console.log(data))
.catch((data) => console.log(data));TypeScript
import mx from "iso20022";
mx.convert('./camt.053.json', 'urn:iso:std:iso:20022:tech:xsd:camt.053.001.10')
.then(output => console.log(output))
.catch(error => console.error(error));
mx.convertAndValidate('./camt.053.json', 'urn:iso:std:iso:20022:tech:xsd:camt.053.001.10','./camt.053.001.10.xsd')
.then((data) => console.log(data))
.catch((data) => console.log(data));NOTE: For script please install the package locally
CLI
Without XSD validation
mx <json-file-path> <targetNamespace> <output-xml-file-path> With XSD Validation
mx <json-file-path> <targetNamespace> <xsdFileName> <output-xml-file-path>Example
Linux
mx /mnt/c/source/xsd/camt.053.json urn:iso:std:iso:20022:tech:xsd:camt.053.001.10 /mnt/c/source/xsd/camt.053.001.10.xsd /mnt/c/source/xsd/camt.053.xmlWindows
mx camt.053.json urn:iso:std:iso:20022:tech:xsd:camt.053.001.10 camt.053.001.10.xsd camt.053.xmlSupported OS
- win-64x
- osx-64x
- linux-64x