npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

iban-utils

v0.1.3

Published

Tool for validating IBANs & extracting detailed bank and branch information.

Downloads

377

Readme

Project license Project version Dependencies Stage


About

iban-utils is zero dependency a Node.js package designed to validate IBANs (International Bank Account Number). The package not only verifies the correctness of IBAN numbers but also allows you to extract detailed information about the bank and branch for supported countries (currently Polish IBANs). This can be particularly useful for handling payments, verifying account information, and ensuring financial data integrity in your applications.

Whether you are developing financial apps, payment gateways, or banking software, this package simplifies the validation and extraction process, making it a must-have for any developer dealing with IBANs. Additional country support for data extraction will be added in future releases.

Bank data and branch extraction availability

country|is supported|source :-----:|:-----:|:-----: Poland (PL)|🟢 YES|EWIB 2.0

Built With

Pure JS combined with a python for generating bank data sets.

Getting Started

Prerequisites

>= ES2015 node

Installation

npm i iban-utils

Usage

Example:

import { getBankDataFromIBAN } from "iban-utils"

const response = getBankDataFromIBAN('PL67109024028933299287615598')

console.log(response)

Response:

{
  valid: true,
  countryCode: 'PL',
  checkDigits: '67',
  bban: '109024028933299287615598',
  bic: '10902402',
  bank: {
    sourceInfo: { data_release: '2024-09-27', data_version: 'PL/ewib/Pub.wer.418' },
    type: 'bank krajowy',
    id: '109',
    name: 'Santander Bank Polska Spółka Akcyjna',
    symbol: 'SANPL',
    registration_date: '1989-01-01',
    trading_names: null,
    registry_number: '0000008723',
    LEI_id: '259400LGXW3K0GDAG361',
    GIIN_id: 'B64D0N.00500.ME.616',
    nip: '8960005673',
    website: 'www.santander.pl',
    BIN_id: [
      'BIN VISA 401325,402358,410830,415045,415048,417223,420546,421588,424479,426846,428359,432068,433802,440547,448351,473706,477915,479080,479084,485723,485724,487489,412281,421636,423725,426847,427755,465557,479080,479084,485723,485724,410830,419491,429566,438371,440586,451480,483047,421352,419172,419173',
      'BIN MasterCard 516827,516828,525632,534160,536388,536412,545380,545580,547605,547607,552044,518682,519308,522368,528176,528577,533908,536360,539669,542517,545250,545258,547303,548600,548606,552626,557386,557509,557519,557716,558467'
    ],
    branches: null,
    faviconUrl: 'https://www.google.com/s2/favicons?domain=www.santander.pl&sz=128',
    branch: {
      evidence_id: 'A001342',
      type: 'Oddział',
      name: '1 Oddział we Wrocławiu',
      symbol: 'O.',
      registrationDate: '2001-10-22',
      phone: [ '71 370 14 03', '71 370 14 05' ],
      address: {
        country: 'POLSKA',
        state: 'DOLNOŚLĄSKIE',
        district: 'Wrocław',
        city: 'Wrocław',
        postal_code: '50-950',
        street: 'Rynek',
        building: '9/11'
      },
      bank_number_data: {
        number: '10902402',
        name: '2 Oddział we Wrocławiu',
        bic_codes: [ 'BIC WBKPPLPPXXX', 'BIC SEPA WBKPPLPPXXX' ],
        generation_date: '2001-10-22'
      }
    }
  }
}

Roadmap

Working on ...

License

This project is licensed under the MIT license.

See LICENSE for more information.