company-email-validator
Version:
Provides a fast company / work email validator by checking whether the email domain is in the free email provider list.
63 lines (34 loc) • 1.8 kB
Markdown
# company-email-validator
Provides a fast company / work email validator by checking whether the email domain is in the free email [provider list](https://github.com/bnurbekov/company-email-validator/blob/main/free_email_provider_domains.js). Note: does not check SMTP servers and MX records currently (i.e. doesn't do deep validation).
[]((http://npm.im/company-email-validator))
[](https://npm-stat.com/charts.html?package=company-email-validator&from=2015-08-01)
Do you worry about tomorrow? **[This short film gives hope](https://thestoryfilm.com/gospelforall)** for whatever may come.
Made with :heart: by [Utterly (noise removal for online meetings)](http://utterly.app)
## Installation
Install via NPM:
```bash
npm install company-email-validator
```
Install via yarn:
```bash
yarn add company-email-validator
```
## Usage
#### javascript
```javascript
var CompanyEmailValidator = require("company-email-validator");
CompanyEmailValidator.isCompanyEmail("test@utterly.app"); // true
CompanyEmailValidator.isCompanyEmail("test@gmail.com"); // false
```
#### TypeScript
```typescript
import * as CompanyEmailValidator from 'company-email-validator';
CompanyEmailValidator.isCompanyEmail("test@utterly.app"); // true
CompanyEmailValidator.isCompanyEmail("test@gmail.com"); // false
```
## Contribute
Contributions welcome! Check the ``LICENSE`` file for more info.
## Meta
* batyrlan@utterly.app
Distributed under the unlicense public domain. See ``LICENSE`` for more information.
[https://github.com/bnurbekov/company-email-validator](https://github.com/bnurbekov/company-email-validator)