JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 9
  • Score
    100M100P100Q42242F
  • License MIT

Convert ngx-iso-form output JSON to ISO20022 message

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.

npm NPM npm

Features

  • 🔥 Convert ngx-iso-form output json to ISO 20022 payment message
  • ⚡️ Supports ISO 20022 XSD Validation

How to Install

  1. Install npm package iso20022.

Global (For CLI)

    npm install -g iso20022

Local (For SCRIPT)

    npm install iso20022

How 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.xml
Windows
mx camt.053.json urn:iso:std:iso:20022:tech:xsd:camt.053.001.10 camt.053.001.10.xsd camt.053.xml

Supported OS

  • win-64x
  • osx-64x
  • linux-64x