mt940-js
An isomorphic Javascript library for working with MT940 format
Changelog
Reading
API
read(buffer, options)
buffer
{Buffer|ArrayBuffer} - income buffer that contains data of mt940 file.options
{ReadOptions}- returns
Promise
with list of Statement.
ReadOptions
getTransactionId(transaction, index)
- a custom generator for transaction id. By default it's:
/*** @description version 0.5.x* @param* @param* @returns */ { return ;} /*** @description version 0.6.x+* @param* @param* @returns */ { return ;}
Node.js environment
;; fs;
Browser environment
Reading a local file
; { const reader = ; reader { mt940; }; reader;}
Reading a remote file
; ;
Writing
Coming soon
Supported MT940 tags
- :20:
- :21:
- :25:
- :28(C):
- :60(M|F):
- :61:
- :62(M|F):
- :64:
- :65:
- :86: