Skip to content

Commit aa1cb95

Browse files
committed
update README.md
1 parent 3e9932d commit aa1cb95

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

README.md

+10-2
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,20 @@ String validator for more.
1111

1212
## Usage
1313

14-
### Node.js
15-
1614
```
1715
var validator = require('is-valid');
16+
17+
validator.isEmail('[email protected]'); // => true
1818
```
1919

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+
2028
## License
2129

2230
The MIT License

0 commit comments

Comments
 (0)