Skip to content

Commit

Permalink
update README
Browse files Browse the repository at this point in the history
  • Loading branch information
hwen committed Nov 10, 2017
1 parent 455a84e commit ae92d6b
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,16 @@ import Validator from 'validator-core'
const validator = new Validator()
```

loaded as a standalone script

```html
<script src="validator.core.min.js"></script>
<script type="text/javascript">
const validator = new Validator()
validator.test('hwenleung@gmail.com', 'email') // => true
</script>
```

## Built-in rules

Before use it
Expand Down

0 comments on commit ae92d6b

Please sign in to comment.