
Research
Security News
Malicious npm Packages Use Telegram to Exfiltrate BullX Credentials
Socket uncovers an npm Trojan stealing crypto wallets and BullX credentials via obfuscated code and Telegram exfiltration.
@devmehq/email-validator-js
Advanced tools
Advanced Email Validation with DNS MX lookup and Mailbox Verification
Verify email address checking MX records, and SMTP connection, check for disposable email addresses and free email providers.
We offer this email verification and validation and more advanced features
in our Scalable Cloud API Service Offering - You could try it here Email Verification
Install the module through YARN:
yarn add @devmehq/email-validator-js
Or NPM
npm insgall @devmehq/email-validator-js
import { verifyEmail } from '@devmehq/email-validator-js';
const { wellFormed, validDomain, validMailbox } = await verifyEmail({ mailbox: 'foo@email.com'});
// wellFormed: true
// validDomain: true
// validMailbox: true
When a domain does not exist or has no MX records, the domain validation will fail, and the mailbox validation will return null
because it could not be performed:
const { wellFormed, validDomain, validMailbox } = await verifyEmail({ mailbox: 'foo@bad-domain.com'});
// wellFormed: true
// validDomain: false
// validMailbox: null
A valid Yahoo domain will still return validMailbox
true because their SMTP servers do not allow verifying if a mailbox exists.
timeout
Set a timeout in seconds for the smtp connection. Default: 10000
.
verifyDomain
Enable or disable domain checking. This is done in two steps:
true
.verifyMailbox
Enable or disable mailbox checking. Only a few SMTP servers allow this, and even then whether it works depends on your IP's reputation with those servers. This library performs a best effort validation:
null
for Yahoo addresses, for failed connections, for unknown SMTP errors.true
for valid SMTP responses.false
for SMTP errors specific to the address's formatting or mailbox existence.
Default: true
.yarn test
Please feel free to open an issue or create a pull request and fix bugs or add features, All contributions are welcome. Thank you!
v1.0.8
FAQs
Advanced Email Validation with DNS MX lookup and Mailbox Verification
The npm package @devmehq/email-validator-js receives a total of 795 weekly downloads. As such, @devmehq/email-validator-js popularity was classified as not popular.
We found that @devmehq/email-validator-js demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket uncovers an npm Trojan stealing crypto wallets and BullX credentials via obfuscated code and Telegram exfiltration.
Research
Security News
Malicious npm packages posing as developer tools target macOS Cursor IDE users, stealing credentials and modifying files to gain persistent backdoor access.
Security News
AI-generated slop reports are making bug bounty triage harder, wasting maintainer time, and straining trust in vulnerability disclosure programs.