@raisin/yup-validations
v1.0.0
Published
Yup validation extensions for IBAN and German Tax ID
Downloads
1,021
Maintainers
Keywords
Readme
Yup Validation Extensions
Adds IBAN and German Tax ID as a reusable Yup schema.
Usage
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
Installation
Using NPM:
$ npm install --save @raisin/yup-validations
or Yarn:
$ yarn add @raisin/yup-validations
License
Distributed under the MIT License. See LICENSE
for more information.
Support
Reach out to us!
- Website at
weltsparen.de