1.0.3 • Published 3 years ago

@ashishtwr/validator v1.0.3

Weekly downloads
21
License
-
Repository
-
Last release
3 years ago

Form validator

Usage:

\

const validate = require("@ashishtwr/validator"); validate({ value: "Ashish Tiwari", max_len: 10, only_aplha: true })

All properties:

  1. value <String> : Pass the value to be validated
  2. max_len <Integer> : Maximum Length of the value allowed
  3. only_alpha <Boolean> : Checks for only alphabet characters
  4. only_num <Boolean> : Checks for only numeric characters
  5. space_allowed <Boolean> : Checks if space is allowed