Get all email addresses in a string
$ npm install get-emails
const getEmails = require('get-emails');
const text = 'Lorem ipsum dolor, [email protected] consectetuer [email protected] elit.';
getEmails(text);
//=> Set {'[email protected]', '[email protected]'}
- get-emails-cli - CLI for this module
MIT © Sindre Sorhus