Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/marvinhagemeister/miniban

Super tiny IBAN validator in only 550 bytes!
https://github.com/marvinhagemeister/miniban

iban performance tiny validation validator

Last synced: 16 days ago
JSON representation

Super tiny IBAN validator in only 550 bytes!

Awesome Lists containing this project

README

        

# miniban

`miniban` is a tiny IBAN validator that is optimized for size and performance.
It weights only merely **550 bytes** and has no dependencies!

| Package | Size | op/s |
|---|---|--:|
| [miniban](https://github.com/marvinhagemeister/miniban) | **550 bytes** | **3,897,495.668** |
| [iban.js](https://github.com/arhs/iban.js/) | ~3.5 kb| 359,175.582 |

## Installation

```bash
# npm
npm install miniban

# yarn
yarn add miniban
```

## Usage

This is super easy: `miniban` only has 1 function.

```js
import { isValidIBAN } from "miniban";

console.log(isValidIBAN("AL47212110090000000235698741"));
// logs: true
```

## License

`MIT`, see [License file](./LICENSE.md).