Skip to content

Latest commit

 

History

History
35 lines (27 loc) · 1.29 KB

File metadata and controls

35 lines (27 loc) · 1.29 KB

pkobp-statement Logo pkobp-statement Logo

An unofficial Node.js library for parsing PKO BP bank account statements

NPM Test Status

Statement retrieval, basic operations

import { readStatementAsync } from "pkobp-statement"

// You must specify which file extension is used by this statement, but be aware only XML is supported for now.
const statement = await readStatementAsync("statement.xml", "xml")

// The account number this statement refers to
const accNum = statement.accountNumber
// The date from which the transactions were retrieved
const sinceDate = statement.sinceDate
// The date until which the transactions were retrieved
const toDate = statement.toDate

// Iterate through all transactions and print each one's
for (const trx of statement.transactions) {
    
    console.log(op)
}