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

iban

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

iban

A javascript library to validate, format and convert IBAN (International Bank Account Number) and BBAN (Basic Bank Account Number)

  • 0.0.14
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created

What is iban?

The 'iban' npm package provides utilities for validating, formatting, and generating International Bank Account Numbers (IBANs). It is useful for financial applications that need to handle IBANs in a standardized way.

What are iban's main functionalities?

Validation

This feature allows you to validate whether a given IBAN is correct. The code sample checks if the provided IBAN is valid and returns a boolean value.

const iban = require('iban');
const isValid = iban.isValid('DE89370400440532013000');
console.log(isValid); // true

Formatting

This feature formats an IBAN into a more readable form by adding spaces. The code sample demonstrates how to format an IBAN string.

const iban = require('iban');
const formattedIban = iban.printFormat('DE89370400440532013000');
console.log(formattedIban); // 'DE89 3704 0044 0532 0130 00'

Generation

This feature generates an IBAN from a given Basic Bank Account Number (BBAN) and country code. The code sample shows how to generate an IBAN from a BBAN.

const iban = require('iban');
const generatedIban = iban.fromBBAN('DE', '370400440532013000');
console.log(generatedIban); // 'DE89370400440532013000'

Other packages similar to iban

FAQs

Package last updated on 05 Feb 2020

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