Socket
Book a DemoInstallSign in
Socket

get-emails

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

get-emails

Get all email addresses in a string

latest
Source
npmnpm
Version
4.0.0
Version published
Weekly downloads
2.5K
13.44%
Maintainers
1
Weekly downloads
 
Created
Source

get-emails

Get all email addresses in a string

Install

$ npm install get-emails

Usage

import getEmails from 'get-emails';

const text = 'Lorem ipsum dolor, sindresorhus@gmail.com consectetuer unicorn@rainbow.cake elit.';

getEmails(text);
//=> Set {'sindresorhus@gmail.com', 'unicorn@rainbow.cake'}

If the string comes from user input, it's up to you to limit it to some reasonable length to prevent abuse.

  • get-emails-cli - CLI for this module

Keywords

get

FAQs

Package last updated on 10 Sep 2021

Did you know?

Socket

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.

Install

Related posts