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 - npm Package Compare versions

Comparing version 0.3.1 to 0.3.2

CHANGELOG.md

41

package.json
{
"name": "addressparser",
"version": "0.3.1",
"description": "Parse e-mail addresses",
"main": "src/addressparser.js",
"repository": {
"type": "git",
"url": "https://github.com/andris9/addressparser.git"
},
"author": "Andris Reinman",
"license": "MIT",
"scripts": {
"test": "grunt"
},
"devDependencies": {
"chai": "~1.8.1",
"grunt": "~0.4.1",
"grunt-contrib-jshint": "~0.8.0",
"grunt-mocha-test": "~0.10.0"
}
}
"name": "addressparser",
"version": "0.3.2",
"description": "Parse e-mail addresses",
"main": "src/addressparser.js",
"repository": {
"type": "git",
"url": "https://github.com/andris9/addressparser.git"
},
"author": "Andris Reinman",
"license": "MIT",
"scripts": {
"test": "grunt"
},
"devDependencies": {
"chai": "^1.10.0",
"grunt": "^0.4.5",
"grunt-contrib-jshint": "^0.10.0",
"grunt-mocha-test": "^0.12.4",
"mocha": "^2.1.0"
}
}
# addressparser
Parse e-mail address fields
Parse e-mail address fields. Input can be a single address (`"andris@kreata.ee"`), a formatted address (`"Andris Reinman <andris@kreata.ee>"`), comma separated list of addresses (`"andris@kreata.ee, andris.reinman@kreata.ee"`), an address group (`"disclosed-recipients:andris@kreata.ee;"`) or a mix of all the formats.
In addition to comma the semicolon is treated as the list delimiter as well (except when used in the group syntax), so a value `"andris@kreata.ee; andris.reinman@kreata.ee"` is identical to `"andris@kreata.ee, andris.reinman@kreata.ee"`.
## Installation

@@ -21,3 +23,3 @@

Parse some address strings with addressparser(field)
Parse some address strings with `addressparser(field)`

@@ -37,3 +39,3 @@ ```javascript

```json
```
[

@@ -40,0 +42,0 @@ {

@@ -205,3 +205,10 @@ 'use strict';

',': '',
':': ';'
':': ';',
// Semicolons are not a legal delimiter per the RFC2822 grammar other
// than for terminating a group, but they are also not valid for any
// other use in this context. Given that some mail clients have
// historically allowed the semicolon as a delimiter equivalent to the
// comma in their UI, it makes sense to treat them the same as a comma
// when used outside of a group.
';': ''
};

@@ -208,0 +215,0 @@

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