Neurological Phenomenon Multiplexer

    @vtex/financial-institutions
    TypeScript icon, indicating that this package has built-in type declarations

    0.2.1 • Public • Published

    Financial Institutions

    Repository with all financial institutions

    Instituitions supported

    • Banks
      • Brazil

    How to install

    $ yarn add @vtex/financial-institutions

    Usage

    Global

    banksFrom(country: string).list()

    import { banksFrom } from '@vtex/financial-institutions'
    
    // list with all brazilian banks, ordered by code
    console.log(banksFrom('br').list())

    banksFrom(country: string).nameByCode(code: string)

    import { banksFrom } from '@vtex/financial-institutions'
    
    // prints BANCO DO BRASIL
    console.log(banksFrom('br').nameByCode('001'))

    Brazil

    padBranchNumber(branchNumber: string | number): string

    Some times we need to handle branch numbers as numeric type and format it for an standard pattern used in brazil.

    import { padBranchNumber } from '@vtex/finantial-institutions/lib/br'
    
    // prints 0012
    console.log(padBranchNumber(12))

    padBankCode(bankCode: string | number): string

    Some times we need to handle bank code as numeric type and format it for an standard pattern used in brazil to visualize or query it.

    import { padBankCode } from '@vtex/finantial-institutions/lib/br'
    
    // prints 001
    console.log(padBankCode(1))

    Contributing

    Follow the steps on CONTRIBUTING.md.

    License

    MIT

    Install

    npm i @vtex/financial-institutions

    DownloadsWeekly Downloads

    1

    Version

    0.2.1

    License

    none

    Unpacked Size

    21.3 kB

    Total Files

    11

    Last publish

    Collaborators

    • thiagof7
    • gleicy-vtex
    • rafael.sangalli.vtex
    • vtexlab-user
    • lenderson_morais
    • wender
    • natamelo
    • mairatma
    • vlagedo_vtex
    • samuelfgs
    • mayzabel
    • rafabac
    • augusto.lazaro
    • tergol
    • rafarubim
    • analuizamtg
    • gustavorosolem
    • arthurepc
    • jeymisson
    • marcosvcp
    • victorhmp
    • lurian
    • ericreis
    • lbebber
    • tlgimenes
    • arturpimentel
    • anitavincent
    • brunojdo
    • brunohq
    • lucasecdb
    • matheusps
    • emersonlaurentino
    • viniagostini
    • hugo.cabral
    • lucasaarcoverde
    • lariciamota
    • wdsrocha
    • icazevedo
    • edunmc
    • fabits
    • mateuspontes
    • gmantiqueira
    • vitorlgomes
    • rodolfoams
    • policarpo
    • marcelovicentegc
    • maianabt
    • jeffersontuc
    • hiagolcm
    • william.silva