0.10.0 • Published 11 months ago

@qavajs/validation v0.10.0

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months ago

@qavajs/validation

npm install @qavajs/validation

@qavajs library that transforms plain english definition to validation functions

Lib supports following validations:

  • equal - not strict equal (==)
  • strictly equal - strict equal (===)
  • deeply equal - deep equal (chai eql)
  • contain - contain a substring
  • match - match a regular expression
  • above / greater than - greater than
  • below / less than - less than
  • have type - type validation
  • have members - validation if array/object have exact members
  • include members - validation if array/object includes members
  • have property - have property validation
  • match schema - match ajv schema
  • case insensitive equal - not strict equal (==) with casting to lower case

All validations can be negated adding not word.

Test

npm run test

0.10.0

11 months ago

0.9.0

1 year ago

0.8.0

1 year ago

0.7.1

2 years ago

0.7.0

2 years ago

0.6.0

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

3 years ago

0.0.1

3 years ago