Giter VIP home page Giter VIP logo

node-email-extractor's Introduction

Node Email Extractor

npm

npm version lisence issues downloads month downloads

Extract emails from text and also from a site page

Includes

Requirements

Instalation

Instalation is done using npm install command

$ npm install node-email-extractor

Feutures

  • Extract email from plaintext
  • Extract emails from website content
  • this module already supports typescript

Usage

javascript

const email = require('node-email-extractor').default;

(async () => {
    var data = await email.url('https://www.****.com/contact-us/')
    console.log(data);
})()

var data = email.text(`Contact Details
Phone: +267 72301363 / 73316322

Email: [email protected]

Registered with: `)

console.log(data)

typescript

import EmailExtractor from "node-email-extractor";

(async () => {
    var data = await EmailExtractor.url('https://www.****.com/contact-us/')
    console.log(data);
})()

var data = EmailExtractor.text(`Contact Details
Phone: +267 72301363 / 73316322

Email: [email protected]

Registered with: `)

console.log(data)

results

{ domains: [ 'gmail.com' ], emails: [ '[email protected]' ] }
{ domains: [ 'gmail.com' ], emails: [ '[email protected]' ] }

Yes, it's really all you need to get started, Thank You ❤️

node-email-extractor's People

Contributors

binsarjr avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.