🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

maybank-statement-parser

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

maybank-statement-parser

This will parse your Maybank statement to JSON or CSV.

1.0.5
latest
Source
npm
Version published
Weekly downloads
0
-100%
Maintainers
1
Weekly downloads
 
Created
Source

Maybank statement parser

This will parse your Maybank statement to JSON or CSV.

Notes: I use this on my Maybank current account (Akaun semasa) with monthtly statement file AND my account not that much active. If you have any problem, please open and issue, I will try to solve it.

How to use

  • Download your statement PDF from Maybank.
  • Open the PDF file.
  • Copy all (CTRL + A)
  • Paste in new file. (Example: /path_to_file/statement.txt)
  • Then use command line by piping the content or use arguments

Piping content

cat /path_to_file/statement.txt | npx maybank-statement-parser

Use --file aurguments

npx maybank-statement-parser

Other arguments

--format=csv or --format=json Print output format in JSON or CSV. Default format csv will be print.

--output='path_to_file/filename' Create file for the output instead of print it on terminal. File extension .csv or .json will be added depend on --format arguments. Default is .csv.

Using package

const fs = require('fs');
const {parser} = require('maybank-statement-parser');

const fileContents = fs.readFileSync('maybank-statements-june.txt');
const maybankStatementData = parser(fileContents.toString());

console.log(maybankStatementData);
// [
//   {
//     account: {
//          ...
//     },
//     date: 2021-05-31T16:00:00.000Z,
//     type: 'brought-forward',
//     balance: 109450,
//     value: 0,
//     description: 'BEGINNING BALANCE',
//     moreDetail: []
//   },
//   {
//     account: {
//          ...
//     },
//     date: 2021-06-04T16:00:00.000Z,
//     type: 'income',
//     balance: 209450,
//     value: 100000,
//     description: 'TRANSFER TO A/C',
//     moreDetail: [ 'NAME OF D*', 'More detail' ]
//   },
//   {
//     account: {
//          ...
//     },
//     date: 2021-06-10T16:00:00.000Z,
//     type: 'income',
//     balance: 236450,
//     value: 27000,
//     description: 'TRANSFER TO A/C',
//     moreDetail: [ 'NAME OF D*', 'More detail' ]
//   },
// ]

Known problems

  • Only working with monthly statements file.

Keywords

maybank

FAQs

Package last updated on 28 Jul 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts