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)
}wiktorczernik/pkobp-statement
Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|

