mt940 1.1.0

A strict MT940 bank statement parser
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
const Benchmark = require("benchmark");
Benchmark.options.async = true;

const mt940 = require('mt940-js');
const fs = require('fs');
const input = fs.readFileSync('../../tests/data/mt940/full/danskebank/MT940_FI_Example.sta');

const suite = new Benchmark.Suite();
suite
    .add("parse", () =>  mt940.read(input))
    .on("complete", () => {
        const runtime_ms = suite[0].stats.mean * 1000;
        console.log(`Run took ${runtime_ms}ms`);
    })
    .run();