Skip to content

wiktorczernik/pkobp-statement

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)
}

About

A neat package that reads PKO BP account statements and outputs them as human-readable objects

Topics

Resources

Stars

Watchers

Forks

Contributors