I've been trying to parse some of my statements from 2014 and i'm getting this error
TypeError: Cannot read property 'substr' of null
at renderers.csv2 (/usr/local/lib/node_modules/hsbc-statement-parser/hsbcextr.js:25:33)
If I console.log the sta variable i see it completely empty
{ filePath: 'json',
acctNum: null,
dateFrom: null,
dateTo: null,
balFrom: null,
balTo: null,
totDebit: null,
totCredit: null,
ops: [] }
I'm running the command as following:
./hsbcextr.sh json /Users/name/Dropbox/1412.pdf
I've been trying to parse some of my statements from 2014 and i'm getting this error
If I console.log the sta variable i see it completely empty
I'm running the command as following: