Skip to content

Commit e1a24f4

Browse files
AlexGalichenkoOleksandr_Halichenko
andauthored
made equal to not strictly (#3)
* made equal to not strictly (==, !=) introduced strictly (chai.equal) and deeply (chai.eql) equal validations * updated readme Co-authored-by: Oleksandr_Halichenko <[email protected]>
1 parent 893dc15 commit e1a24f4

File tree

5 files changed

+435
-231
lines changed

5 files changed

+435
-231
lines changed

README.md

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,18 @@
1-
# validation
2-
Lib that transform plain english definition to validation functions
1+
# @qavajs/validation
2+
3+
`npm install @qavajs/validation`
4+
5+
This is internal @qavajs library that helps to transform plain english definition to validation functions
6+
7+
Lib supports following validations
8+
* equal - not strict equal (==)
9+
* strictly equal - strict equal (===)
10+
* deeply equal - deep equal (chai eql)
11+
* contain - contain a substring
12+
* match - match a regular expression
13+
* above / greater than - greater than
14+
* below / less than - less than
15+
* have type - type validation
16+
* have members - validation if array have members
17+
18+
All validations can be negated adding _not_ word.

0 commit comments

Comments
 (0)