包详细信息

bic-validator

hy0ug05.3kGPL-3.01.27.0

BIC (Business Identifier Code) format validator

iso 9362, bic, bic code, business identifier code

自述文件

BIC Validator

BIC (Business Identifier Code) format validator

Release

FORKED FROM https://github.com/nicolaspayot/bic

Install

$ npm install bic-validator --save
# OR
$ yarn add bic-validator

Usage

In Node.js

const bicValidator = require('bic-validator');
bicValidator.isValid('12345678'); // false
bicValidator.isValid('CHASUS33'); // true

// OR

import bicValidator from 'bic-validator';
bicValidator.isValid('12345678'); // false
bicValidator.isValid('CHASUS33'); // true

In browser

<script src="https://cdn.jsdelivr.net/npm/bic-validator@[VERSION_NUMBER]/dist/bic.umd.min.js"></script>

<script>
    bicValidator.isValid('12345678'); // false
    bicValidator.isValid('CHASUS33'); // true
</script>

License

The MIT License (MIT)