[go: up one dir, main page]

Skip to content

An iban validator containing Rust generated WebAssembly

License

Notifications You must be signed in to change notification settings

jbosi/iban-validator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

iban-validator

An iban validator containing rust generated WebAssembly

Quick start

  • Install the package as a JS dependency npm i iban-validator
  • Import the validate function ex :
import { validate } from 'iban-validator';
  • Use it as any js function :
try {
	this.isValid = validate(value)
} catch (e) {
	// Handle error here
}

Error list :

  • ErrorNullValue : provided value is null
  • ErrorMaxLength: the value is longer than 35 char
  • ErrorFirstTwoLetters: the first two letters should be strings (and match any country code - not implemented yet)
  • ErrorChecksum : the checksum is invalid
  • ErrorMinLength : the value is shorter than 15 char

About

An iban validator containing Rust generated WebAssembly

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages