GithubHelp home page GithubHelp logo

mczen-technologies / tnrib Goto Github PK

View Code? Open in Web Editor NEW
5.0 3.0 3.0 20 KB

Vérificateur de RIB Tunisien

Home Page: https://trovit.tn

License: MIT License

JavaScript 100.00%
rib iban bic tunisia bban-validator tunisie

tnrib's Introduction

TNRIB (Vérificateur de RIB Tunisie)

GitHub license Google Play Badge

Le RIB (Relevé d'identité bancaire) est un numéro qui identifie d'une manière unique un compte bancaire en Tunisie. Le relevé d'identité bancaire tunisien est constitué d'une série de 20 chiffres.

Voir la démo sur trovit.tn


The BBAN (Basic Bank Account Number) or is a number that uniquely identifies a bank account. The Tunisian BBAN is made up of a series of 20 digits.

See the demo on trovit.tn

Installation

<script src="https://cdn.jsdelivr.net/gh/mczen-technologies/tnrib@latest/tnrib.min.js"></script>

Usage dans le navigateur

console.log(new TNRIB('07040005810111129653').isValid());
// expected output: true

Get IBAN

console.log(new TNRIB('07040005810111129653').iban());
// expected output: 'TN59 07 040 0058101111296 53'

Get SWIFT/BIC code

console.log(new TNRIB('07040005810111129653').bic());
// expected output:  'CFCTTNTT'

Get Account Number

console.log(new TNRIB('07040005810111129653').accountNumber());
// expected output:  '0058101111296'	

Get Bank Name

console.log(new TNRIB('07040005810111129653').bankName());	
// expected output:  'AMEN'	

Get the TNRIB Object

console.log(new TNRIB('07040005810111129653'))
// expected output: 
/*{
	"value": "07040005810111129653",
	"valid": true,
	"iban": "TN59 07 040 0058101111296 53",
	"bic": "CFCTTNTT",
	"accountNumber": "0058101111296",
	"bankName": "AMEN"
  }*/

tnrib's People

Contributors

3imed-jaberi avatar besrourms avatar hamedhaouari avatar heithemmoumni avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.