@aregnet/iban-val
v1.2.1
Published
IBAN validation package
Downloads
108
Readme
IBAN Validation
Installing
Package manager
Using npm:
$ npm install @aregnet/iban-val
Once the package is installed, you can import the library using import
or require
approach:
import * as IbanVal from '@aregnet/iban-val';
console.log(IbanVal.isValid('AE070331234567890123456'));
If you use require
for importing:
const IbanVal = require('@aregnet/iban-val');
console.log(IbanVal.isValid('AE070331234567890123456'));
CDN
Using unpkg CDN:
<script src="https://www.unpkg.com/@aregnet/iban-val"></script>
Example
For samples see iban-val-sample repo.
import * as IbanVal from '@aregnet/iban-val';
console.log("Full IBAN check");
console.log(IbanVal.checkIban('DE12345'));
console.log("---");
console.log("Simple IBAN check");
console.log(IbanVal.isValid('BH67BMAG00001299123456'));