
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
email-validator-qs
Advanced tools
A simple module to validate an email address.
The validator supports quoted-string for the "local" part of the email address (as stated in RFC3696).
dot ., provided that it is not the first or last character unless quoted, and provided also that it does not appear consecutively unless quoted (e.g. John..Doe@example.com is not allowed but "John..Doe"@example.com is allowed)
space and special characters "(),:;<>@[] are allowed with restrictions (they are only allowed inside a quoted string, as described in the paragraph below, and in addition, a backslash or double-quote must be preceded by a backslash);
Install via NPM:
npm install email-validator-qs
var validator = require("email-validator-qs");
validator.validate('test@email.com'); // true
validator.validate('another.test@email.com'); // true
validator.validate('another..test@email.com'); // false
validator.validate('"another..test"@email.com'); // true
validator.validate('"anot\her..test"@email.com'); // false
validator.validate('"anot\\her..test"@email.com'); // true
validator.validate('"anot"her..test"@email.com'); // false
validator.validate('"anot\"her..test"@email.com'); // true
import * as EmailValidator from 'email-validator-qs';
EmailValidator.validate('test@email.com'); // true
EmailValidator.validate('another.test@email.com'); // true
EmailValidator.validate('another..test@email.com'); // false
EmailValidator.validate('"another..test"@email.com'); // true
EmailValidator.validate('"anot\her..test"@email.com'); // false
EmailValidator.validate('"anot\\her..test"@email.com'); // true
EmailValidator.validate('"anot"her..test"@email.com'); // false
EmailValidator.validate('"anot\"her..test"@email.com'); // true
Contributions welcome! Check the LICENSE
file for more info.
This library was originally forked from: https://github.com/manishsaraan/email-validator by Manish Saraan Thank you!
Distributed under the unlicense public domain. See LICENSE
for more information.
FAQs
An email validator including quoted string for local part
We found that email-validator-qs 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.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.