Gathering detailed insights and metrics for ibantools
Gathering detailed insights and metrics for ibantools
Gathering detailed insights and metrics for ibantools
Gathering detailed insights and metrics for ibantools
IBANTools is TypeScript/JavaScript library for validation, creation and extraction of IBAN, BBAN and BIC/SWIFT numbers.
npm install ibantools
99.6
Supply Chain
100
Quality
79.8
Maintenance
100
Vulnerability
80.9
License
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
206 Stars
618 Commits
41 Forks
7 Watching
8 Branches
20 Contributors
Updated on 21 Nov 2024
Minified
Minified + Gzipped
JavaScript (52.86%)
TypeScript (43.36%)
Ruby (3.79%)
Cumulative downloads
Total Downloads
Last day
-7.5%
39,564
Compared to previous day
Last week
2.7%
214,084
Compared to previous week
Last month
0.9%
910,574
Compared to previous month
Last year
33.3%
9,417,124
Compared to previous year
IBANTools is TypeScript/JavaScript library for validation, creation and extraction of IBAN, BBAN and BIC/SWIFT numbers.
For more information about IBAN/BBAN see wikipedia page and IBAN registry.
For more information about BIC/SWIFT see this wikipedia page.
$ npm install ibantools
$ bower install ibantools
See full documentation with examples on Github pages.
1const ibantools = require('ibantools'); 2const iban = electronicFormatIBAN('NL91 ABNA 0417 1643 00'); // 'NL91ABNA0517164300' 3ibantools.isValidIBAN(iban); 4 5// If you want to know reason why IBAN is invalid 6ibantools.validateIBAN('NL91ABNA0517164300'); 7// Returns { valid: false, errorCodes: [iban.ValidationErrorsIBAN.WrongIBANChecksum] } 8 9// Validate BIC 10ibantools.isValidBIC('ABNANL2A');
1require(["ibantools"], function(ibantools) { 2 console.log(ibantools.isValidIBAN('NL91 ABNA 0417 1643 00')); 3 console.log(ibantools.isValidBIC('ABNANL2A')); 4});
Use browserify or webpack.
Use node, not bower module.
If you are using tools that support jsnext
, like a rollup or JSPM, they will automatically select right module from the package.
Install library/module using npm. Package bundles type definitions and if you are on TypeScript 2.0 or above tsc
will access those automatically. If not, check your tsconfig.json
file.
Country specifications can be extended with national BBAN validations by calling setCountryBBANValidation
.
For example, to fully syntactically check German IBAN, you can install IBANTools-Germany and add this with
const ibantools = require('ibantools');
const ibantoolsGermany = require("ibantools-germany");
ibantools.setCountryBBANValidation("DE", ibantoolsGermany.isValidBBAN);
This project adheres to the Contributor Covenant code of conduct. By participating, you are expected to uphold this code.
For contribution details, please read this document.
This work is dual-licensed under MIT and MPL-2.0. You can choose between one of them if you use this work.
SPDX-License-Identifier: MIT OR MPL-2.0
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
SAST tool is run on all commits
Details
Reason
license file detected
Details
Reason
2 existing vulnerabilities detected
Details
Reason
5 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 4
Reason
security policy file detected
Details
Reason
dependency not pinned by hash detected -- score normalized to 4
Details
Reason
Found 2/11 approved changesets -- score normalized to 1
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
Score
Last Scanned on 2024-11-25
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More