@feryardiant/sendgrid-inbound-parser
TypeScript icon, indicating that this package has built-in type declarations

0.1.6 • Public • Published

Sendgrid Inbound Parser

My personal implementation of SendGrid inbound-mail parser.

Usage

This package exposes 4 functions

async parseEmail(req): Promise<NormalizedEmail>

Parse email field in inbound mail body.

async storeAttachment(attachment, bucket): Promise<File>

Store the attachment file to google storage bucket.

normalize(email): NormalizedEmail

Normalize parsed-mail from 'mailparser' package

inboundParser()

Express middleware to parse request body.


Please refer to this file for more type definitions

Credits

Licenses

code is licensed under MIT,

Readme

Keywords

none

Package Sidebar

Install

npm i @feryardiant/sendgrid-inbound-parser

Weekly Downloads

6

Version

0.1.6

License

MIT

Unpacked Size

40.1 kB

Total Files

9

Last publish

Collaborators

  • feryardiant