Skip to content

Classe de 'Banco'(Agencia e conta) com validação de dígito para as principais agencias

Notifications You must be signed in to change notification settings

uasouz/brazil-banks-validators

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

brazil-banks-validators

npm version

Package that has functions that validate bank branch and account of the 5 main banks of Brazil:

  • Banco do Brasil
  • Santander
  • Caixa
  • Bradesco
  • Itaú

Instalation

npm install --save brazil-banks-validators

Usage

const validator = require("brazil-banks-validators")

// Success case when creating class 
try {
    const banco = new Bank(
        237,
        3726,
        null,
        "0127039",
        7
    )

    console.log(banco)
} catch(error) {
    console.log(error)
}

// Example case of error when creating class
try {
    const banco = new Bank(
        237,
        3726,
        null,
        "0127039",
        7
    )

    console.log(banco)
} catch(error) {
    console.log(error)
}

// Using validation function
validateBankPromise(237,3726,null,"0127039",7,0,"",true).then((result)=>{
    console.log(result)
}).catch((error)=>{
    console.log(error)
})

About

Classe de 'Banco'(Agencia e conta) com validação de dígito para as principais agencias

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published