extract-email-domain

0.0.1 • Public • Published

Extract Email Domain Name

🦄 Simple Utility to Extract the domain from an email address.

Build

Extract Email Domain Name

📦 Requirements

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

Installation

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

(or)

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

🖊️ Usage

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

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

💡 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);

☑️ Example Output

mcnaveen.com

💚 Message

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

Package Sidebar

Install

npm i extract-email-domain

Weekly Downloads

1

Version

0.0.1

License

ISC

Unpacked Size

18.4 kB

Total Files

8

Last publish

Collaborators

  • mcnaveen