domain-util

domain utils

Usage no npm install needed!

<script type="module">
  import domainUtil from 'https://cdn.skypack.dev/domain-util';
</script>

README

´╗┐Validation model

VALIDATORS

    required: ERROR_MESSAGE
    numericString: ERROR_MESSAGE
    numric: ERROR_MESSAGE

USEAGE EXAMPLE

 validator.validate(smsOptions, {
        phone: {
            required: 'please add phone number',
            numericString: 'this field must be numbers'
        },
        text: {
            required: 'please add text'
        }
    });