Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

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

  • 0.1.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
422K
decreased by-1.81%
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 30 Aug 2012

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