
Research
NPM targeted by malware campaign mimicking familiar library names
Socket uncovered npm malware campaign mimicking popular Node.js libraries and packages from other ecosystems; packages steal data and execute remote code.
@sefinek/email-validator
Advanced tools
This lightweight module facilitates precise email address validation, returning a Boolean
value of true
or false
.
npm install @sefinek/email-validator
yarn add @sefinek/email-validator
const emailValidator = require('@sefinek/email-validator');
const testEmail = 'contact@sefinek.net';
if (emailValidator.test(testEmail)) {
console.log(`Email ${testEmail} is valid.`);
} else {
console.log(`Email ${testEmail} is NOT valid!`);
}
https://cdn.jsdelivr.net/npm/@sefinek/email-validator@1/dist/browser.min.js
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>email-validator</title>
</head>
<body>
<h1>email-validator</h1>
<script src="https://cdn.jsdelivr.net/npm/@sefinek/email-validator@1/dist/browser.min.js"></script>
<script>
const email = 'contact@sefinek.net';
if (emailValidator.test(email)) {
console.log(`✔️ Email ${email} is valid.`);
} else {
console.log(`❎ Email ${email} is NOT valid!`);
}
</script>
</body>
</html>
If you find this module helpful, please consider giving the repository a star. For any questions or issues, please create a new Issue.
Copyright 2023-2024 © by Sefinek. All Rights Reserved.
FAQs
Lightweight npm module for email address validation.
The npm package @sefinek/email-validator receives a total of 180 weekly downloads. As such, @sefinek/email-validator popularity was classified as not popular.
We found that @sefinek/email-validator 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
Socket uncovered npm malware campaign mimicking popular Node.js libraries and packages from other ecosystems; packages steal data and execute remote code.
Research
Socket's research uncovers three dangerous Go modules that contain obfuscated disk-wiping malware, threatening complete data loss.
Research
Socket uncovers malicious packages on PyPI using Gmail's SMTP protocol for command and control (C2) to exfiltrate data and execute commands.