0.0.0 • Published 2 years ago
verificateur v0.0.0
Verificateur
A tool that allows you to validate your form and also acts as a helper when submitting data to the server
Installation
To download, make sure you have Nodejs installed
$ npm i verificateur --save-dev
How to use it
import Verificateur from "verificateur";
const input = document.querySelector(".input");
const inputVr = Verificateur(input);
input.addEventListener("blur", () => {
// If there are numbers and the minimum length is 9 characters
if (inputVr.onlyNumbers() && inputVr.minLength(9)) {
...
}
});
All methods you can see here