Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ibantools

Package Overview
Dependencies
Maintainers
1
Versions
48
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ibantools

Validation, extraction and creation of IBAN, BBAN, BIC/SWIFT numbers plus some other helpful stuff like ISO 3136-1 alpha 2 country list

  • 4.5.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
207K
increased by6.86%
Maintainers
1
Weekly downloads
 
Created

What is ibantools?

The ibantools npm package provides utilities for validating and formatting International Bank Account Numbers (IBANs). It helps ensure that IBANs are correctly structured and can be used for financial transactions.

What are ibantools's main functionalities?

Validate IBAN

This feature allows you to validate an IBAN to ensure it is correctly formatted and valid. The `validateIBAN` function returns an object indicating whether the IBAN is valid and, if not, what the issues are.

const ibantools = require('ibantools');
const result = ibantools.validateIBAN('DE89370400440532013000');
console.log(result);

Format IBAN

This feature allows you to format an IBAN into a more readable form. The `formatIBAN` function takes an IBAN string and returns it in a standardized format with spaces.

const ibantools = require('ibantools');
const formattedIBAN = ibantools.formatIBAN('DE89370400440532013000');
console.log(formattedIBAN);

Get IBAN Country Information

This feature provides information about the country associated with a given IBAN. The `getIBANCountryInfo` function takes a country code and returns details such as the country name and IBAN length.

const ibantools = require('ibantools');
const countryInfo = ibantools.getIBANCountryInfo('DE');
console.log(countryInfo);

Other packages similar to ibantools

Keywords

FAQs

Package last updated on 23 Mar 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc