Nearsighted Paramecium Multiverse
    Have ideas to improve npm?Join in the discussion! »

    brazil-banks-validators

    0.0.2 • Public • Published

    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)
    })
    

    Install

    npm i brazil-banks-validators

    DownloadsWeekly Downloads

    6

    Version

    0.0.2

    License

    ISC

    Unpacked Size

    10.4 kB

    Total Files

    11

    Last publish

    Collaborators

    • avatar