form-guardian
v0.1.2
Published
A collection of input field validations
Downloads
2
Maintainers
Readme
Form guardian
Collection of common validators for different kind of input fields.
Use case
Made for the use case of creating POC's quicker, without having to fill your POC with validation logic. Form-guardian simply lets you focus on your POC rather then the common stuff around when it comes to input field validation.
npm install form-guardian
import { validateZipCodeSwe } from '@form-guardian';
import { maxValue } from '@form-guardian';
validateZipCodeSwe(123321) // false
validateZipCodeSwe(12332) // true
maxValue(1, 5) // true
maxValue(5, 1) // false
Other information
Terms of usage (MIT) - Lisence
Basicly feel free to use, fork etc. But The author takes no responsibility of the code as stated in the license.