Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,23 @@ $ npm install is-email
### isEmail(string)

Loosely checks whether a `string` is an email address.

## Usage

### ES6

```javascript
import isEmail from 'is-email';

isEmail('example'); // false
isEmail('example@mail.com'); // true
```

### Common JS

```javascript
var isEmail = require('is-email');

isEmail('example'); // false
isEmail('example@mail.com'); // true
```