domain-util

0.0.1 • Public • Published

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'
        }
    });

Readme

Keywords

none

Package Sidebar

Install

npm i domain-util

Weekly Downloads

13

Version

0.0.1

License

none

Last publish

Collaborators

  • gal_weiss