New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

extract-email-domain

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

extract-email-domain

Simple Utility to Extract the domain from an email address

  • 0.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Extract Email Domain Name

:unicorn: Simple Utility to Extract the domain from an email address.

Build

Extract Email Domain Name

:package: Requirements

  • Node.js 12X LTS or 14X LTS 📦

:sparkles: Installation

  • Install the NPM Package with the below command:
npm install extract-email-domain --save

(or)

  • Install with Yarn:
yarn add extract-email-domain

:pen: Usage

  • Import the module in your project:
// Commonjs Import
var extractDomain = require("extract-email-domain");

// or ES6 import
import extractDomain from "extract-email-domain";

:bulb: Example

  • Import the module in your project
  • Pass the email address to the function
var extractDomain = require("extract-email-domain");


myEmail = "me@mcnaveen.com";
const getEmail = extractDomain(myEmail);
console.log(getEmail);

:ballot_box_with_check: Example Output

mcnaveen.com

:green_heart: Message

I hope you find this useful. If you have any questions, please create an issue.

Keywords

FAQs

Package last updated on 02 Mar 2022

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc