You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							52 lines
						
					
					
						
							1.3 KiB
						
					
					
				
			
		
		
	
	
							52 lines
						
					
					
						
							1.3 KiB
						
					
					
				| # email-validator
 | |
| A simple module to validate an e-mail address
 | |
| 
 | |
| [](https://travis-ci.org/manishsaraan/email-validator)
 | |
| []((http://npm.im/email-validator))
 | |
| [](https://npm-stat.com/charts.html?package=email-validators&from=2015-08-01)
 | |
| [](https://github.com/xojs/xo)
 | |
| 
 | |
| ## Installation
 | |
| Install via NPM:
 | |
| 
 | |
| ```bash
 | |
| npm install email-validator
 | |
| 
 | |
| ```
 | |
| 
 | |
| ## Usage
 | |
| 
 | |
| #### javascript
 | |
| 
 | |
| ```javascript
 | |
| 
 | |
| var validator = require("email-validator");
 | |
| 
 | |
| validator.validate("test@email.com"); // true
 | |
| 
 | |
| ```
 | |
| 
 | |
| #### TypeScript
 | |
| 
 | |
| ```typescript
 | |
| 
 | |
| import * as EmailValidator from 'email-validator';
 | |
| 
 | |
| EmailValidator.validate("test@email.com"); // true
 | |
| 
 | |
| 
 | |
| ```
 | |
| 
 | |
| ## Contribute
 | |
| 
 | |
| Contributions welcome! Check the ``LICENSE`` file for more info.
 | |
| 
 | |
| ## Meta
 | |
| 
 | |
| * robert@cosmicrealms.com
 | |
| * manish021js@gmail.com
 | |
| 
 | |
| Distributed under the unlicense public domain. See ``LICENSE`` for more information.
 | |
| 
 | |
| [https://github.com/manishsaraan/email-validator](https://github.com/manishsaraan/email-validator)
 |