@sineverba/check-domain
v1.0.0
Published
Checks if an email is part of a domain
Downloads
12
Readme
Check Domain
| CI / CD | Status |
| ------- | ------ |
| NPM | |
| Semaphore CI |
|
| Circle CI |
|
| Coverall |
|
| SonarCloud |
|
Check domain checks if an email is part of a domain.
Installation
npm install @sineverba/check-domain
Usage
import {isInDomain} from "@sineverba/check-domain";
console.log(isInDomain("[email protected]", "example.com")); // prints true
console.log(isInDomain("[email protected]", "example.it")); // prints false
Tests
npm run test for simple test
npm run cover for coverage
