Package Exports
- iban
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (iban) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
iban.js
IBAN and BBAN validation, formatting and conversion in javascript. Check the demo on our website to try it.
Usage
IBAN.js can be used as a node.js module and in the browser.
In node.js
var IBAN = require('iban');
IBAN.isValid('hello world'); // false
IBAN.isValid('BE68539007547034'); // trueIn the browser
<script src="iban.js"></script>
<script>
// the API is now accessible from the window.IBAN global object
IBAN.isValid('hello world'); // false
IBAN.isValid('BE68539007547034'); // true
</script>API
* isValid(iban)
* toBBAN(iban, separator)
* fromBBAN(countryCode, bban)
* isValidBBAN(countryCode, bban)
* printFormat(iban, separator)
* electronicFormat(iban)