Socket
Socket
Sign inDemoInstall

addressparser

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

addressparser

Parse e-mail addresses


Version published
Weekly downloads
426K
increased by1.32%
Maintainers
1
Weekly downloads
 
Created

What is addressparser?

The addressparser npm package is used to parse email addresses into their component parts. It is particularly useful for applications that need to handle email addresses in a structured way, such as email clients, validation tools, and email processing systems.

What are addressparser's main functionalities?

Parse a single email address

This feature allows you to parse a single email address into its component parts, such as the name and the email address itself.

const addressparser = require('addressparser');
const parsed = addressparser('John Doe <john.doe@example.com>');
console.log(parsed);

Parse multiple email addresses

This feature allows you to parse a string containing multiple email addresses, separating each address into its component parts.

const addressparser = require('addressparser');
const parsed = addressparser('John Doe <john.doe@example.com>, Jane Doe <jane.doe@example.com>');
console.log(parsed);

Handle complex email address formats

This feature allows you to handle and parse more complex email address formats, including those with special characters and quoted names.

const addressparser = require('addressparser');
const parsed = addressparser('"John Doe, PhD" <john.doe@example.com>, Jane Doe <jane.doe@example.com>');
console.log(parsed);

Other packages similar to addressparser

FAQs

Package last updated on 06 Feb 2016

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