1.2.1 • Published 6 months ago

@qavajs/validation v1.2.1

Weekly downloads
-
License
MIT
Repository
github
Last release
6 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

1.2.0

6 months ago

1.1.1

7 months ago

1.1.0

9 months ago

1.0.0

10 months ago

1.2.1

6 months ago

0.10.0

1 year ago

0.9.0

1 year ago

0.8.0

2 years ago

0.7.1

2 years ago

0.7.0

2 years ago

0.6.0

2 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago