https://github.com/pixelbyaj/iso20022-cli
Convert ngx-iso-form output JSON to MX message
https://github.com/pixelbyaj/iso20022-cli
Last synced: about 2 months ago
JSON representation
Convert ngx-iso-form output JSON to MX message
- Host: GitHub
- URL: https://github.com/pixelbyaj/iso20022-cli
- Owner: pixelbyaj
- License: mit
- Created: 2024-07-30T21:37:28.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-07-30T22:02:45.000Z (10 months ago)
- Last Synced: 2025-03-28T01:51:31.323Z (about 2 months ago)
- Language: TypeScript
- Size: 19.3 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# iso20022-cli (mx)
Convert ngx-iso-form output json to MX (ISO 20022) message.

[](https://npmjs.org/package/iso20022-cli)## Features
- 🔥 Convert ngx-iso-form output json to MX (ISO 20022) message
- ⚡️ Supports ISO 20022 XSD Validation## How to Install
1. Install npm package iso20022-cli.
Global (For CLI)
```console
npm install -g iso20022-cli
```Local (For SCRIPT/CLI)
```console
npm install iso20022-cli
```## How to Use
### CLI
Without XSD validation
```console
mx
```With XSD Validation
```console
mx
```#### Example
##### Linux```console
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
```console
mx camt.053.json urn:iso:std:iso:20022:tech:xsd:camt.053.001.10 camt.053.001.10.xsd camt.053.xml
```
### Script
JavaScript
```js
const mx = require('iso20022-cli').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
```ts
import mx from "iso20022-cli";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## Supported OS
- win-64x
- osx-64x
- linux-64x