npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@ingram-tech/camt053

v0.1.0

Published

TypeScript parser for ISO 20022 CAMT.053 (Bank-to-Customer Statement) XML

Readme

@ingram-tech/camt053

TypeScript parser for ISO 20022 CAMT.053 (Bank-to-Customer Statement) XML documents. Parses CAMT.053.001.x (any version) into fully typed objects, extracting every data element from the standard.

Installation

npm install @ingram-tech/camt053

Usage

import { parseCamt053 } from "@ingram-tech/camt053";

const xml = fs.readFileSync("statement.xml", "utf8");
const report = parseCamt053(xml);

if (report) {
    console.log(report.messageId);
    for (const stmt of report.statements) {
        console.log(`Account: ${stmt.account.iban}`);
        console.log(`Owner: ${stmt.account.owner?.name}`);
        console.log(`Bank: ${stmt.account.servicer?.name}`);

        for (const balance of stmt.balances) {
            console.log(`${balance.type}: ${balance.amount} ${balance.currency}`);
        }

        for (const entry of stmt.entries) {
            console.log(`${entry.creditDebitIndicator} ${entry.amount} ${entry.currency}`);
            console.log(`  Status: ${entry.status}`);
            console.log(`  Info: ${entry.additionalInformation}`);

            if (entry.amountDetails?.currencyExchange) {
                const fx = entry.amountDetails.currencyExchange;
                console.log(`  FX: ${fx.sourceCurrency}/${fx.targetCurrency} @ ${fx.exchangeRate}`);
            }
        }
    }
}

Parsed fields

The parser extracts all CAMT.053 data elements:

  • Group header: message ID, creation date, recipient
  • Statement: ID, sequence numbers, date range, account, balances, entries
  • Account: IBAN or other ID, currency, owner (name, address, org ID), servicer (name, BIC, address)
  • Balances: type (OPBD, CLBD, CLAV, etc.), amount, currency, credit/debit indicator, date
  • Transaction summary: total/credit/debit entry counts and sums, net amount
  • Entries: reference, amount, currency, credit/debit, status, booking/value dates, bank transaction code, charges, reversal indicator, additional info
  • Amount details: transaction amount, currency exchange (source/target/unit currency, exchange rate)
  • Entry details: batch info, transaction details
  • Transaction details: references (message/payment/instruction/end-to-end/transaction/mandate IDs), amount details, bank transaction code, related parties (debtor/creditor/ultimate), related agents, purpose, remittance info (unstructured and structured), charges, return info, additional info

Supported versions

Supports all CAMT.053.001.x namespace versions (001 through 010+), including the v10 Cdtr > Pty > Nm nesting used by modern banks.

Development

npm test          # run tests in watch mode
npm run test:run  # run tests once
npm run lint      # eslint
npm run format    # prettier
npm run build     # build to dist/
npm run ci        # type-check + lint + test + build

License

MIT