1.0.0 โ€ข Published 4 years ago

clearingnummer v1.0.0

Weekly downloads
466
License
MIT
Repository
github
Last release
4 years ago

Clearingnummer

npm version npm.io 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!

1.0.0

4 years ago

0.10.0

4 years ago

0.9.0

4 years ago

0.8.1

6 years ago

0.8.0

6 years ago

0.7.0

6 years ago

0.6.2

6 years ago

0.6.1

6 years ago

0.6.0

6 years ago

0.5.0

7 years ago

0.4.5

7 years ago

0.4.4

7 years ago

0.4.3

7 years ago

0.4.2

7 years ago

0.4.1

7 years ago

0.4.0

7 years ago

0.3.0

7 years ago

0.2.2

8 years ago

0.2.1

9 years ago

0.2.0

9 years ago

0.1.1

9 years ago

0.1.0

9 years ago