
Research
2025 Report: Destructive Malware in Open Source Packages
Destructive malware is rising across open source registries, using delays and kill switches to wipe code, break builds, and disrupt CI/CD.
email-prompt
Advanced tools
CLI email prompt featuring autocompletion and validation.
Powers vercel --login.

import emailPrompt from 'email-prompt';
let email;
try {
email = await emailPrompt({
/* options */
});
} catch (err) {
console.log('\n> Aborted!');
return;
}
console.log('\n> Hello ' + email);
To run the demo, clone the project and run:
npm install
node demo
start (String): the beginning of the prompt. Defaults to > Enter your email: domains (Set): domain names to autocomplete (as String). Defaults to:
aol.comgmail.comgoogle.comyahoo.comymail.comhotmail.comlive.comoutlook.cominbox.commail.comgmx.comicloud.comhey.comzeit.covercel.comforceLowerCase (Boolean): converts all input to lowercase. Defaults to true.suggestionColor (String): a chalk color. Defaults to grayautocompleteChars (Set): a set of chars that trigger autocompletion. Defaults to:
resolveChars (Set): a set of chars that resolve the promise. Defaults to ↵returnabortChars (Set): a set of chars that abort the process. Defaults to Ctrl+CallowInvalidChars (Boolean): controls whether non-email chars are accepted. Defaults to falseSome important implementation details:
email-prompt automatically adapts the mode of process.stdin for you.stdin stream is resumed and paused upon the promise being
settled.tty mode is set to raw, which means all the caret interactions
that you come to expect in a regular stdin prompt are simulated.
This gives us fine-grained control over the output and powers the
validation.FAQs
CLI email prompt with autocompletion and built-in validation
The npm package email-prompt receives a total of 90 weekly downloads. As such, email-prompt popularity was classified as not popular.
We found that email-prompt demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 80 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
Destructive malware is rising across open source registries, using delays and kill switches to wipe code, break builds, and disrupt CI/CD.

Security News
Socket CTO Ahmad Nassri shares practical AI coding techniques, tools, and team workflows, plus what still feels noisy and why shipping remains human-led.

Research
/Security News
A five-month operation turned 27 npm packages into durable hosting for browser-run lures that mimic document-sharing portals and Microsoft sign-in, targeting 25 organizations across manufacturing, industrial automation, plastics, and healthcare for credential theft.