Skip to content
This repository has been archived by the owner on Apr 16, 2021. It is now read-only.
/ sms-parser Public archive

a parser that parses a transaction alert from any bank and retrieves the information

Notifications You must be signed in to change notification settings

OAyomide/sms-parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NB: THIS PACKAGE/PROJECT/REPO HAS BEEN RETIRED. THE GOOD PEOPLE AT MONO HQ HAVE IMPLEMENTED SOMETHING THAT DOES THIS WITH EVEN BETTER ELEGANCE. WE'RE PORTING TO USING THEIR SDK/API INSTEAD. THIS REPO IS GOING TO BE "SUNSET."

Use case

This repo contains the parsers for each bank.

Example

const { sms_parser } = require('./')

const sample_sms = `Acct: 0175456083\nAmt: 2,000.00 CR \nDesc: -- --JAIZ BANK FAJUYI DUGBE IBADAN    OYNGSTAN9999002986\nAvail Bal: 129,696.51\n`
const gbank_details = sms_parser.gtb(sample_sms)

console.log(gtbank_details) // outputs the below
/**
 * [
  { Acct: '0175456083' },
  { Amt: '2,000.00' },
  { TxType: 'CR' },
  { Desc: '-- --JAIZ BANK FAJUYI DUGBE IBADAN    OYNGSTAN9999002986' },
  { Bal: '129,696.51' }
]
 * /

Goals

The aim of this repository is to have a single repo for all the parsers for the (Nigerian) banks to be supported. Each Bank would be a method of the class SMS_PARSER.

This can then be used in the react-native app like a regular module/library.

About

a parser that parses a transaction alert from any bank and retrieves the information

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published