bic-validator
v1.27.0
Published
BIC (Business Identifier Code) format validator
Downloads
4,274
Maintainers
Readme
BIC Validator
BIC (Business Identifier Code) format validator
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)