@petercraftsmn/validate

Validate data

Usage no npm install needed!

<script type="module">
  import petercraftsmnValidate from 'https://cdn.skypack.dev/@petercraftsmn/validate';
</script>

README

Validate

Functions

All functions return boolean value, false on failure

  • Validates that a string is string of characters
isStringOfCharacters(str)
  • Validates that a string is fit for username
isStringOfUsername(str)
  • Validates that string is an email
 isEmail(email)
  • Validates that string is fit for password
isStringOfPassword(password)