npm.io
1.0.2 • Published 8 years ago

grab-emails

Licence
MIT
Version
1.0.2
Deps
0
Size
4 kB
Vulns
0
Weekly
0

Grab emails

Build Status

Extract emails from multiline string

Installing

npm install --save grab-emails

Usage

const grabEmails = require("grab-emails");

const emailList = grabEmails(`

first email: first.email@example.com
2nd email: second+email@example.com

`);

console.log(emailList);

Output

[ 'first.email@example.com', 'second+email@example.com' ]

Running the tests

npm run test

License

This project is licensed under the MIT License - see the LICENSE file for details