mongoose-iban
Gives you the Iban
type to use in your schemas, complete with validation using the excellent arhs/iban library. An IBAN is a type of bank account number used extensively in Europe.
Usage
Start with an npm install --save mongoose-iban
var mongoose = ;var Schema = mongooseSchema; ; var Iban = SchemaTypesIban; var BankAccountSchema = accountNumber: type: Iban ; var BankAccountModel = mongoose; var bankAccount = accountNumber: 'NL39 RABO 0300 0652 64';
This type will validate the entry and return an error if a wrong value is given.