To prep your environment, make sure you have
- yarn
- node (13_x) installed.
Run yarn install
to install the dependencies.
yarn build
To output account numbers:
./bankocr parse <filename>
To output them to a file:
bin/bankocr parse <filename> <outputFile>
To validate an account number:
bin/bankocr validate <accountNumber>
A shell.nix
script have been supplied to provision your environment automatically if you have nix installed.
If nix is installed, open the shell by running nix-shell
.
yarn lint
to run eslint
yarn test
to run the test suite.