Determines the SWIFT BIC of an IBAN.
npm install iban-to-bic  
Determines the SWIFT BIC of an IBAN. Currently supports IBANs from the following countries: Austria, Belgium, Germany, Luxembourg, Netherlands, Spain, France.
``javascript
const { ibanToBic } = require('iban-to-bic');
const bic = ibanToBic('DE51500105179975341634');
// bic is now "INGDDEFFXXX"
`
ibanToBic returns undefined if the IBAN is invalid (checked internally using ibantools) or if no corresponding BIC was found.
iban-to-bic is really simple to use inside a browser. You can either pull the package from npm and build it with your favorite packaging tool or you can use it from a CDN like this:
``
Using this code makes it super comfortable to validate user input and provide auto-fill to your application.
The following will fetch the newest data from the respective national bank authorities (e.g. Bundesbank in Germany or OeNB in Austria) and regenerate the files in the datasets and the datasets-extended directory:
```
npm run generate
For Spain and France, data directly from the European Central Bank is used, see here.
MIT