file-judge
v1.0.0
Published
npm module used for file validation
Downloads
4
Readme
npm module used for file validation
///so from here validateEmail module return true if the email is in correct formate otherwise it returns a false value so that value we check in the if condition and move on
import {validateEmail,validatePassword,validateUsername,validateAddress,validatePan,validateGst} from '/filejudge'
const email='[email protected]' //it is in the correct email formate const email=asgmail.com //not in the email formate
if(!vaildateEmail(email)) { alert("enter the proper email address") //here no errorr will happend because the email formate is correct }
if(!vaildateEmail(email1)) { alert("enter the proper email address") }
//here it shows errorr because the email formate is not correct }