You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
An unofficial Node.js library for parsing PKO BP bank account statements
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.conststatement=awaitreadStatementAsync("statement.xml","xml")// The account number this statement refers toconstaccNum=statement.accountNumber// The date from which the transactions were retrievedconstsinceDate=statement.sinceDate// The date until which the transactions were retrievedconsttoDate=statement.toDate// Iterate through all transactions and print each one'sfor(consttrxofstatement.transactions){console.log(op)}