Socket
Socket
Sign inDemoInstall

clearingnummer

Package Overview
Dependencies
1
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    clearingnummer

Clearing numbers for Swedish banks


Version published
Maintainers
1
Install size
12.2 MB
Created

Changelog

Source

1.0.0 (2020-09-08)

Features

  • bump to v1 (3fcaf72)

BREAKING CHANGES

  • Updated the typing signature of the available methods to be stricter.

Also This library has been working fine for a long time. It's time to take it to an official v1.

Readme

Source

Clearingnummer

npm version Code Climate Test Coverage

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

yarn add clearingnummer

Services

bankName()
bankName(string | number): string

Retrieve bank name for a given number

Example
import clearingnummer from '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 'clearingnummer'

clearingnummer.clearingNumbers('Ålandsbanken')
// [{
     "min": 2310,
     "max": 2310
   }]
allBanks
allBanks(): string[]

Retrieve the names of all banks in the listing

import clearingnummer from 'clearingnummer'

clearingnummer.allBanks()
// [
  'ABN AMRO',
  'Avanza Bank'
  ...
]

Tests

npm test

Contributors

Thanks goes to these wonderful people (emoji key):


Rickard Laurin

🐛 💻 📖 👀

Fredrik Ohlin

💻

Ivan Kustera

💻

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

Keywords

FAQs

Last updated on 08 Sep 2020

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc