
Security News
New CVE Forecasting Tool Predicts 47,000 Disclosures in 2025
CVEForecast.org uses machine learning to project a record-breaking surge in vulnerability disclosures in 2025.
extract-email-address
Advanced tools
Extracts email-like entities from an arbitrary text input.
import {
extractEmail,
type EmailMatch,
} from 'extract-email-address';
extractEmail(input: string): readonly EmailMatch[];
import { extractEmail } from 'extract-email-address';
extractEmail('extracts email from anywhere within the input gajus@gajus.com');
// [{email: 'gajus@gajus.com'}]
extractEmail('extracts multiple emails located anywhere within the input: foo@gajus.com, bar@gajus.com');
// [{email: 'foo@gajus.com'}, {email: 'bar@gajus.com'}]
extractEmail('extracts all sorts of obfuscated emails, e.g. f o o @ b a r . c o m or baz [at] qux [dot] com');
// [{email: 'foo@bar.com'}, {email: 'baz@qux.com'}]
extractEmail('extracts tagged emails, e.g. gajus+foo@gajus.com');
// [{email: 'gajus+foo@gajus.com'}]
extractEmail('extracts emails surrounded by odd unicode characters, e.g. 邮箱:gajus@gajus.com');
// [{email: 'gajus@gajus.com'}]
extractEmail('extracts emails surrounded by emojis, e.g. 📧gajus@gajus.com');
// [{email: 'gajus@gajus.com'}]
extractEmail('excludes invalid emails with invalid TLDs, e.g. gajus@gajus.png');
// []
extractEmail('ignores invalid emails foo@bar');
// []
Some matches might be syntactically valid email addresses, but not actual email addresses, e.g. apple-touch-icon@2.png
.
extract-email-address
uses a list of valid top-level domains to filter out matches that are definitely not emails (such as png
example), but you might still need to filter out domain specific false-positives.
extract-date
– Extracts date from an arbitrary text input.extract-price
– Extracts price from an arbitrary text input.extract-time
– Extracts time from an arbitrary text input.FAQs
Extracts email address from an arbitrary text input.
The npm package extract-email-address receives a total of 5,922 weekly downloads. As such, extract-email-address popularity was classified as popular.
We found that extract-email-address 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.
Security News
CVEForecast.org uses machine learning to project a record-breaking surge in vulnerability disclosures in 2025.
Security News
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
Research
Security News
Eight new malicious Firefox extensions impersonate games, steal OAuth tokens, hijack sessions, and exploit browser permissions to spy on users.