Coder Social home page Coder Social logo

edk3d-dev / enban Goto Github PK

View Code? Open in Web Editor NEW

This project forked from chaquotay/enban

0.0 0.0 0.0 79 KB

Enban is an IBAN/BBAN API for .NET, including parsing, validation and formatting.

License: MIT License

C# 94.38% Batchfile 0.23% Smalltalk 0.01% PowerShell 3.03% Shell 2.35%

enban's Introduction

Enban

Enban is an IBAN/BBAN API for .NET, including parsing, validation and formatting.

Usage

The following snippets show some basic uses of Enban.

Parsing, validation and formatting of an IBAN

var parsed = IBANPattern.Electronic.Parse("GI75NWBK000000007099453");
if (parsed.Success && parsed.Value.CheckDigitValid)
{
    Console.WriteLine($"IBAN '{parsed.Value:p}' is valid!");
}

prints IBAN 'GI75 NWBK 0000 0000 7099 453' is valid!

Constructing an IBAN from a BBAN (with check digit)

var germany = CountryProviders.Default["DE"];
var iban = new BBAN(germany, "210501700012345678").ToIBAN();

Console.WriteLine($"IBAN with check digit (valid: {iban.CheckDigitValid}): " + IBANPattern.Print.Format(iban));

prints IBAN with check digit (valid: True): DE68 2105 0170 0012 3456 78

NuGet

Enban is available on NuGet.

Build status

Build status

enban's People

Contributors

chaquotay 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.