JSPM

iban-checker

1.0.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 14
  • Score
    100M100P100Q51553F
  • License MIT

This package checks if the given string is valid IBAN.

Package Exports

  • iban-checker
  • iban-checker/index.js

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-checker) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

iban-checker

This package checks if the given string is valid IBAN.

Install

Install with npm:

$ npm install --save iban-checker

Usage

You can pass an iban string as first parameter.

You can pass 'true' or 'false' to second parameter to enable Checksum. By default, checksumEnabled is true.

const isIBAN = require('iban-checker');

// Whitout any checksum parameter

console.log(isIBAN('TR81 0001 0011 6582 7773 0750 02')); //=> true
console.log(isIBAN('AT61 1904 3002 3457 3201')); //=> true
console.log(isIBAN('FR14 2004 1010 0505 0001 3')); //=> false


// With checksumEnabled parameter
console.log(isIBAN('XX00 1234 5678 9012 3456 7890 1234 5678 90', false)); //=> true
console.log(isIBAN('XX00 1234 5678 9012 3456 7890 1234 5678 90', true)); //=> false