Skip to content

coincovemx/mxn-banks-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mxn-banks Build Status

Get mexican banks from IBAN

Getting Started

Install the node module with: npm install mxn-banks Install the bower package with: bower install mxn-banks

var MxnBanks = require('mxn-banks'); // nodejs
MxnBanks is defined in the window object // Bower

Examples

MxnBanks.toJson(); // "Return an array of objects with all banks."
// The isValid function calculates the control digit. 
MxnBanks.isValid('002180700866064000') // True
var bank = MxnBanks.fromIban('002180700866064000'); 
// {number: "002", name: "Banco Nacional de México, S.A.", abbreviate: "BANAMEX"}
bank.name // "Banco Nacional de México, S.A."
bank.abbreviate // "BANAMEX"
bank.number // "002"

License

Copyright (c) 2017 aldosolorzano
Licensed under the MIT license.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •