@octoguide/validation-utils

<dl> <dt><a href="#isEmailValid">isEmailValid</a></dt> <dd><p>does the email follow the convention <id>@<host-server>.<where></p> </dd> <dt><a href="#isNameValid">isNameValid</a></dt> <dd><p>check if name is entered</p> </dd> <dt><a href="#isValueEntered"

Usage no npm install needed!

<script type="module">
  import octoguideValidationUtils from 'https://cdn.skypack.dev/@octoguide/validation-utils';
</script>

README

Constants

isEmailValid

does the email follow the convention @.

isNameValid

check if name is entered

isValueEntered

check if value is entered

isNumberEnteredValid

Check the value is a number greater than or equal to the min and less than or equal to the max values specified

is0to100NumberValid

Check the value is a number greater than or equal to 0 and less than or equal to 100

isNumberValid

Check the value is a number

isEmpty

checks if the entry is empty - space, null, undefined

isEmailValid

does the email follow the convention @.

Kind: global constant

Param Type
value string

isNameValid

check if name is entered

Kind: global constant

Param Type
value string

isValueEntered

check if value is entered

Kind: global constant

Param Type
value string

isNumberEnteredValid

Check the value is a number greater than or equal to the min and less than or equal to the max values specified

Kind: global constant

Param Type
value number
min number
max number

is0to100NumberValid

Check the value is a number greater than or equal to 0 and less than or equal to 100

Kind: global constant

Param Type
value number

isNumberValid

Check the value is a number

Kind: global constant

Param Type
value number

isEmpty

checks if the entry is empty - space, null, undefined

Kind: global constant

Param Type
e any