Adds IBAN and German Tax ID as a reusable Yup schema.
import yup from "@raisin/yup-validations";
const schema = yup.string().iban();
schema.isValid("GB94BARC10201530093459"); // true
schema.isValid("GB94 BARC 1020 1530 0934 59"); // true
schema.isValid("US64SVBKUS6S3300958879"); // false
Using NPM:
$ npm install --save @raisin/yup-validations
or Yarn:
$ yarn add @raisin/yup-validations
Distributed under the MIT License. See LICENSE
for more information.
Reach out to us!
- Website at
weltsparen.de