emails-in-string
v2.0.0
Published
Extract emails from just about any string
Downloads
2
Readme
Emails in String ✉️
Extract unique email addresses out of just about any string!
How to use
import emailsInString from "emails-in-string";
const uniqueEmails = emailsInString(`[email protected],
"User at Domain" <[email protected]>, [email protected],
[email protected]`);
// ["[email protected]", "[email protected]", "[email protected]" ]
Enjoy!
Tests
A suite of tests can be found in the ./tests directory and can be executed by running npm run test
.