It seems like the example code hasn't worked for some time, but I could be wrong. When downloading the parser and reader, I get the current error after setting the right tty-version for my device:
2020-2-27 8:00:59 PM
{ type: 'parser', data: 'failed to parse' }