1.0.9 • Published 6 years ago

basic-validate-js v1.0.9

Weekly downloads
1
License
MIT
Repository
gitlab
Last release
6 years ago

Basic Validate JS

You can validate JavaScript forms with Basic Validate JS.

Install:

Using npm:

    $ npm i basic-validate-js --save

In Node.js:

    const basicValidate = require('basic-validate-js'); 

Example:

Text Validate

    let textExample = basicValidate.textControl('Text'); // return true or false

Email Validate

    let emailExample = basicValidate.emailControl('example@example.com'); // return true or false 

Date Validate

    //Format: DD/MM/YYYY
    let dateExample = basicValidate.dateControl('05/09/2018'); // return true or false     

Iban Validate

    let ibanExample = basicValidate.ibanControl('TR00 0006 2000 0001 9999 9999 99'); // return true or false  

Regex Validate

    let numberPattern = /^(([0-9]*)|(([0-9]*)\.([0-9]*)))$/;
    let patternExample = basicValidate.patternControl('1234567890', numberPattern); // return true or false  
1.0.9

6 years ago

1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago