This is a simple app demonstrating 1) parsing a binary log representing bank transactions into JSON and 2) running sample queries against the transformed result.
- Node (This app has been tested against v6.11 & v8.10.)
The following will install necessary dependencies:
npm install
The following will parse ./data/txnlog.dat
and print a report.
npm run parse
If you'd like to specify a custom binary log file or write the output to disk, parse.js
has the following options:
node ./parse [--infile INFILE] [--outfile OUTFILE]
INFILE
: Local path to binary file to parse. Default./data/txnlog.dat
OUTFILE
: Local path to write parsed document. Default/dev/null
Standard JS linting and a modest test suite can be run as follows:
npm test