Nothing's plumb meaningless

    @opendevtools/clearingnummer
    TypeScript icon, indicating that this package has built-in type declarations

    1.3.0 • Public • Published

    Clearingnummer

    npm (scoped)

    Sort codes, clearingnummer in Swedish, are four or five digit identifiers for Swedish banks. This package helps you find the bank related to a specific number. All clearing numbers are taken from Wikipedia and Swedish Bankers Association.

    Installation

    npm install @opendevtools/clearingnummer
    

    Services

    bankName()

    bankName(string | number): string

    Retrieve bank name for a given number

    Example
    import clearingnummer from '@opendevtools/clearingnummer'
    
    clearingnummer.bankName(5202)
    // 'SEB'

    clearingNumbers()

    clearingNumbers(string): { min: string | number, max: string | number }[]

    Retrieve clearing numbers for a given bank name

    Example
    import clearingnummer from '@opendevtools/clearingnummer'
    
    clearingnummer.clearingNumbers('Ålandsbanken')
    // [{
         "min": 2310,
         "max": 2310
       }]

    allBanks

    allBanks(): string[]

    Retrieve the names of all banks in the listing

    import clearingnummer from '@opendevtools/clearingnummer'
    
    clearingnummer.allBanks()
    // [
      'ABN AMRO',
      'Avanza Bank'
      ...
    ]

    Tests

    npm test
    

    Contributors

    Thanks goes to these wonderful people (emoji key):


    Rickard Natt och Dag

    🐛 💻 📖 👀

    Fredrik Ohlin

    💻

    Ivan Kustera

    💻

    Ben McKernan

    💻

    mp-horm

    💻

    This project follows the all-contributors specification. Contributions of any kind welcome!

    Install

    npm i @opendevtools/clearingnummer

    DownloadsWeekly Downloads

    215

    Version

    1.3.0

    License

    MIT

    Unpacked Size

    33.9 kB

    Total Files

    20

    Last publish

    Collaborators

    • dubbelnisse
    • believer