New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

camtjs

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

camtjs

JS package to work with CAMT transactions

latest
Source
npmnpm
Version
0.0.7
Version published
Maintainers
1
Created
Source

camtjs

npm version npm total downloads Maintainability Rating coverage Bugs Known Vulnerabilities

JS package to work with Camt transactions.

:warning: Still work in progress. :warning:

Features

  • Camt052 (WIP)
  • Camt053
  • Validation

The Camt052 implementation is currently based on V10, but may work for e.g. V8 as well.

For easier working inside JS, the camt tags are renamed to their description according to ISO 20022. For instance BkToCstmrAcctRpt.Rpt.Ntry is renamed to messageRoot.report.entry.

Installation

npm i camtjs

Natively supported in node. For browser there are polyfills needed, because of the underlying xml2js. I tested it with nextjs and vite, which both worked out of the box.

Usage

import { Camt052 } from 'camtjs';

const camt052 = await Camt052.parseCamt('your camt xml');

// You then have access to the complete Camt052 document tree
console.log(camt052.document.messageRoot.report.entry);

Keywords

camt

FAQs

Package last updated on 16 Nov 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts