Skip to content

Let's build your form validation with form-validation-constructor!

License

Notifications You must be signed in to change notification settings

alexeyvax/form-validation-constructor

Repository files navigation

form-validation-constructor

The simple library-constructor which validate form on the client side. Constructor is based on a "strategy" pattern and It can add your personal form check.

form-validation-constructor complemented browser's validation or replaced it with custom checks.

On the section how to add a custom check, you can see an example which add your own check to the list of checks.

See description

See description

See example

see code example

Install with npm

You can install library with npm

npm install --save form-validation-constructor

after installation you can connect it to your project The best place to the connect is your root file, which combine all scripts example:

// connect to main scripts file
import formValidationConstructor from 'form-validation-constructor';

formValidationConstructor();

License

MIT