Socket
Book a DemoInstallSign in
Socket

parse-gmail-email

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

parse-gmail-email

Parse gmail API emails

latest
Source
npmnpm
Version
1.1.1
Version published
Maintainers
1
Created
Source

parse-gmail-email

Build Status NPM version

Parse gmail API emails

var parse = require('parse-gmail-email');

var email = 'Your full gmail API email';

parse(email, function(err, data) {
  // =>
  /*
  {
    subject: 'Subject here',
    from: { name: 'Steve Lacy', address: 'me@slacy.me' },
    to: [ { address: 'me@slacy.me', name: 'Steve Lacy' } ],
    cc: [
      { address: 'test@test.com', name: '' }
    ],
    id: '14b9d36df0e',
    threadId: '14b9d3694f7',
    labelIds: [ 'INBOX', 'CATEGORY_UPDATES' ],
    snippet: 'this is a snippet',
    attachments: {
      '2': {
        filename: 'great-websites.md', attachmentId: 'SUCHIDHERE'
      }
    },
    message: 'This is the message'
  }

  */
});


MIT

FAQs

Package last updated on 10 Aug 2017

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