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

@types/addressparser

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/addressparser - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

2

addressparser/index.d.ts

@@ -39,3 +39,3 @@ // Type definitions for addressparser 1.0

*/
group?: EmailAddress[];
group?: EmailAddress[] | undefined;
}

@@ -42,0 +42,0 @@ }

{
"name": "@types/addressparser",
"version": "1.0.0",
"version": "1.0.1",
"description": "TypeScript definitions for addressparser",
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/addressparser",
"license": "MIT",

@@ -24,4 +25,4 @@ "contributors": [

},
"typesPublisherContentHash": "218099e3e4e5da58aa9ff58468ff6c0d068750c10ad32f93d716d315ad756841",
"typeScriptVersion": "3.1"
"typesPublisherContentHash": "0a81baeb604f539e2e6edba26683e62f59743df08b3ab32e57dca46ff4b6bfd6",
"typeScriptVersion": "3.6"
}

@@ -9,5 +9,52 @@ # Installation

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/addressparser.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/addressparser/index.d.ts)
````ts
// Type definitions for addressparser 1.0
// Project: https://github.com/nodemailer/addressparser
// Definitions by: Anton Panov <https://github.com/risedphantom>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference types="node" />
/**
* Parses structured e-mail addresses from an address field
*
* Example:
*
* 'Name <address@domain>'
*
* will be converted to
*
* [{name: 'Name', address: 'address@domain'}]
*
* @param str Address field
*/
declare function addressparser(str: string): addressparser.EmailAddress[];
declare namespace addressparser {
/**
* Address details.
*/
interface EmailAddress {
/**
* The email address.
*/
address: string;
/**
* The name part of the email/group.
*/
name: string;
/**
* An array of grouped addresses.
*/
group?: EmailAddress[] | undefined;
}
}
export = addressparser;
````
### Additional Details
* Last updated: Fri, 28 Aug 2020 00:17:21 GMT
* Last updated: Wed, 07 Jul 2021 21:44:02 GMT
* Dependencies: [@types/node](https://npmjs.com/package/@types/node)

@@ -14,0 +61,0 @@ * Global values: none

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