0.0.20230703140417 • Published 10 months ago

iban-helper v0.0.20230703140417

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

iban.js

IBAN and BBAN validation, formatting and conversion in Javascript.

IBAN.js follows the ISO 13616 IBAN Registry technical specification.

Usage

IBAN.js is compatible with both commonjs and AMD module definition. It can be used as a node.js module and in the browser. It also has a bower manifest, a Typescript definition and a Meteor wrapper.

In node.js

var IBAN = require('iban');
IBAN.isValid('hello world'); // false
IBAN.isValid('BE68539007547034'); // true

In the browser

Using a module loader (AMD or commonjs) or directly through the global IBAN object:

<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>

With TypeScript

The library is also available from the typescript language. To do this, download the definition and add a reference to this:

/// <reference path="iban.d.ts" />
IBAN.isValid('hello world');
IBAN.isValid('BE68539007547034');

With Meteor framework

A wrapper package for the Meteor framework is available here.

API

  • isValid(iban)
  • toBBAN(iban, separator)
  • fromBBAN(countryCode, bban)
  • isValidBBAN(countryCode, bban)
  • printFormat(iban, separator)
  • electronicFormat(iban)
0.0.20230703140417

10 months ago

0.0.20230624085638

11 months ago

0.0.20230624080530

11 months ago

0.0.20230624075016

11 months ago

0.0.20230624072516

11 months ago

0.0.20230624071257

11 months ago

0.0.20230623092335

11 months ago

0.0.20230623091741

11 months ago

0.0.20230623091540

11 months ago

0.0.20230623091307

11 months ago

0.0.20230623090958

11 months ago

0.0.20230623090414

11 months ago