
Security News
ESLint Adds Official Support for Linting HTML
ESLint now supports HTML linting with 48 new rules, expanding its language plugin system to cover more of the modern web development stack.
mailgun-validate
Advanced tools
Simple email validation for node.js using Mailgun's API. Performs
You will need to sign up at mailgun.net for a public API key.
A PHP version is also available here: github.com/kehers/MG_Email.
npm install mailgun-validate
var Validator = require('mailgun-validate');
var validator = new Validator('mail-gun-pub-key');
validator.validate('someemail@test.com', function(err, response) {
if (err) {
// Validation error
// Log and fallback to regular expressions
return;
}
/* response = {
"is_valid": true,
"address": "foo@mailgun.net",
"parts": {
"display_name": null,
"local_part": "foo",
"domain": "mailgun.net",
},
"did_you_mean": null
}//*/
if (response.is_valid) {
// Email valid
}
else {
// Email invalid
if (response.did_you_mean) {
// Did your mean response.did_you_mean?
}
}
})
MIT
FAQs
Email validation for node.js using Mailgun's API
The npm package mailgun-validate receives a total of 0 weekly downloads. As such, mailgun-validate popularity was classified as not popular.
We found that mailgun-validate demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.
Security News
ESLint now supports HTML linting with 48 new rules, expanding its language plugin system to cover more of the modern web development stack.
Security News
CISA is discontinuing official RSS support for KEV and cybersecurity alerts, shifting updates to email and social media, disrupting automation workflows.
Security News
The MCP community is launching an official registry to standardize AI tool discovery and let agents dynamically find and install MCP servers.