
Research
/Security News
Weaponizing Discord for Command and Control Across npm, PyPI, and RubyGems.org
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
@dintero/email-chk
Advanced tools
Check if an email address contains a typo and suggest the correct one.
Conventional Typescript:
import { EmailChk } from '@dintero/email-chk';
const emailChk = EmailChk({
domains: ['gmail.com', 'hotmail.com', 'yahoo.com'],
levensteinThreshold: 3,
});
const email = "username@gmain.com";
const result = emailChk(email); // username@gmail.com
React:
...
import { EmailChk } from '@dintero/email-chk';
const App = () => {
const [email, setEmail] = useState('');
const [suggestion, setSuggestion] = useState('');
const emailChk = EmailChk({
domains: ['gmail.com', 'hotmail.com', 'yahoo.com'],
levensteinThreshold: 3,
});
const handleChange = useCallback((e: React.ChangeEvent<HTMLInputElement>) => {
const { value } = e.target;
setEmail(value);
setSuggestion(emailChk(value)); // username@gmail.com
}, [email]);
return (
<div>
<input type="text" value={email} onChange={handleChange} />
{suggestion && <p>Did you mean {suggestion}?</p>}
</div>
);
};
FAQs
Check if an email address contains a typo and suggest the correct one.
The npm package @dintero/email-chk receives a total of 359 weekly downloads. As such, @dintero/email-chk popularity was classified as not popular.
We found that @dintero/email-chk demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 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 researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
Security News
Socket now integrates with Bun 1.3’s Security Scanner API to block risky packages at install time and enforce your organization’s policies in local dev and CI.
Research
The Socket Threat Research Team is tracking weekly intrusions into the npm registry that follow a repeatable adversarial playbook used by North Korean state-sponsored actors.