Skip to content

Commit

Permalink
README update
Browse files Browse the repository at this point in the history
  • Loading branch information
FGRibreau committed Mar 4, 2013
1 parent c3e12bc commit b15e5ad
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,52 @@ MailChecker currently supports:

-------------------------

## NodeJS

```javascript
var MailChecker = require('mailchecker');

if(!MailChecker('myemail@yopmail.com')){
console.error('O RLY !');
process.exit(1);
}

if(!MailChecker('myemail.com')){
console.error('O RLY !');
process.exit(1);
}
```

## JavaScript
```html
<script type="text/javascript" src="MailChecker/platform/javascript/MailChecker.js"></script>
<script type="text/javascript">
if(!MailChecker('myemail@yopmail.com')){
console.error('O RLY !');
}
if(!MailChecker('myemail.com')){
console.error('O RLY !');
}
</script>
```

## PHP
```php
include __DIR__."/MailChecker/platform/php/MailChecker.php";

if(!MailChecker('myemail@yopmail.com')){
die('O RLY !');
}

if(!MailChecker('myemail.com')){
die('O RLY !');
}
```

--------------------


## Installation

NodeJS/JavaScript
Expand Down

0 comments on commit b15e5ad

Please sign in to comment.