Gathering detailed insights and metrics for deep-email-validator
Gathering detailed insights and metrics for deep-email-validator
Gathering detailed insights and metrics for deep-email-validator
Gathering detailed insights and metrics for deep-email-validator
npm install deep-email-validator
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
873 Stars
68 Commits
92 Forks
17 Watching
22 Branches
10 Contributors
Updated on 27 Nov 2024
TypeScript (97.99%)
JavaScript (2.01%)
Cumulative downloads
Total Downloads
Last day
-17.2%
3,029
Compared to previous day
Last week
7.2%
19,507
Compared to previous week
Last month
-3.2%
73,973
Compared to previous month
Last year
4.2%
763,679
Compared to previous year
Validates email addresses based on regex, common typos, disposable email blacklists, DNS records and SMTP server response.
Compatible with nodejs only. Not browser ready.
Install like so
npm i deep-email-validator --save
or with yarn
yarn add deep-email-validator
Use like so
1import { validate } from 'deep-email-validator' 2const main = async () => { 3 let res = await validate('asdf@gmail.com') 4 // { 5 // "valid": false, 6 // "reason": "smtp", 7 // "validators": { 8 // "regex": { 9 // "valid": true 10 // }, 11 // "typo": { 12 // "valid": true 13 // }, 14 // "disposable": { 15 // "valid": true 16 // }, 17 // "mx": { 18 // "valid": true 19 // }, 20 // "smtp": { 21 // "valid": false, 22 // "reason": "Mailbox not found.", 23 // } 24 // } 25 // } 26 27 // Can also be called with these default options 28 await validate({ 29 email: 'name@example.org', 30 sender: 'name@example.org', 31 validateRegex: true, 32 validateMx: true, 33 validateTypo: true, 34 validateDisposable: true, 35 validateSMTP: true, 36 }) 37}
If you want to validate domains with TLDs that are not supported by default, you can use additionalTopLevelDomains
option:
1await validate({ 2 email: 'name@example.ir', 3 sender: 'name@example.ir', 4 validateRegex: true, 5 validateMx: true, 6 validateTypo: true, 7 validateDisposable: true, 8 validateSMTP: true, 9 additionalTopLevelDomains: [ 'ir' ] 10})
For a list of TLDs that are supported by default you can see here.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 8/22 approved changesets -- score normalized to 3
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
34 existing vulnerabilities detected
Details
Score
Last Scanned on 2024-11-18
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More