New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

emails-in-string

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

emails-in-string

Extract emails from just about any string

latest
Source
npmnpm
Version
2.0.0
Version published
Maintainers
1
Created
Source

Emails in String ✉️

Build Status

Extract unique email addresses out of just about any string!

How to use

import emailsInString from "emails-in-string";

const uniqueEmails = emailsInString(`user@domain.com,
  "User at Domain" <user@domain.com>, user2@domain.com,
  user+something@domain.com`);
// ["user@domain.com", "user2@domain.com", "user+something@domain.com" ]

Enjoy!

Tests

A suite of tests can be found in the ./tests directory and can be executed by running npm run test.

FAQs

Package last updated on 09 Jul 2017

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