We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3e9932d commit aa1cb95Copy full SHA for aa1cb95
1 file changed
README.md
@@ -11,12 +11,20 @@ String validator for more.
11
12
## Usage
13
14
-### Node.js
15
-
16
```
17
var validator = require('is-valid');
+
+validator.isEmail('abc@gmail.com'); // => true
18
19
20
+### Validators
21
22
+- isEmail(str): check if it is an Email string
23
+- isAllChinese(str): check if it is a string only contains Chinese characters
24
+- isAllEnglish(str): check if it is a string only contains English characters
25
+- isAllDigit(str): check if it is a string only contains digits
26
+- isChineseTel(str): check if it is a Chinese cell-phone number
27
28
## License
29
30
The MIT License
0 commit comments