Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

@opendevtools/clearingnummer

Package Overview
Dependencies
Maintainers
0
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@opendevtools/clearingnummer

Clearing numbers for Swedish banks

latest
Source
npmnpm
Version
1.4.1
Version published
Maintainers
0
Created
Source

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

💻

Oscar Linderholm

💻

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

Keywords

Clearing

FAQs

Package last updated on 14 Aug 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts