cape-validate

Some simple validation functions.

Usage no npm install needed!

<script type="module">
  import capeValidate from 'https://cdn.skypack.dev/cape-validate';
</script>

README

cape-validate v1.0.3

Some simple validation functions.

  • fieldValidation(validators)(value) - validators must be an array. Returns an error message string or undefined.

Validator Helpers

  • firstChar
  • length
  • minLength
  • maxLength
  • numString