react-form-supervalidator
v1.1.0
Published
Fully custom form validation
Maintainers
Readme
react-form-supervalidator
Fully custom form validation.
Installation
npm install react-form-supervalidatorUsage (Vite 8, Node ESM, and other modern bundlers)
The package exposes an ESM build with a real default export plus named exports, so this works without default interop hacks:
import Validator, { ValidationTypes } from 'react-form-supervalidator';
// Validator is the validation function (callable).
const err = Validator(value, ValidationTypes.required, 'This field is required');For CommonJS (require), the default lives on default:
const Validator = require('react-form-supervalidator');
const fn = Validator.default ?? Validator;
const { ValidationTypes } = Validator;Requires React 17+ (automatic JSX runtime).
Features
This project have following features :
- Full form validation
- You can create your own custom validation
Demo AND Testing
you can test my package from this link testing
Validations
| Type | Description | | ------------- | ------------------------------------------------------- | | required | if value is required | | capitalize | if you want to captilize every value e.g "ARSLAN AHMED" | | NullCheck | to check null values | | startEndDate | to check validation of start and end date | | validateEmail | to check validation for email |
Hi, I'm Arslan Ahmed Shaad! 👋
🚀 About Me
I'm a full stack developer...
Feedback
If you have any feedback, please reach out to us at [email protected]
