Skip to content

Commit

Permalink
update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
SFantasy committed Sep 8, 2014
1 parent 3e9932d commit aa1cb95
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,20 @@ String validator for more.

## Usage

### Node.js

```
var validator = require('is-valid');
validator.isEmail('[email protected]'); // => true
```

### Validators

- isEmail(str): check if it is an Email string
- isAllChinese(str): check if it is a string only contains Chinese characters
- isAllEnglish(str): check if it is a string only contains English characters
- isAllDigit(str): check if it is a string only contains digits
- isChineseTel(str): check if it is a Chinese cell-phone number

## License

The MIT License

0 comments on commit aa1cb95

Please sign in to comment.