Socket
Socket
Sign inDemoInstall

node-gmail-api

Package Overview
Dependencies
56
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    node-gmail-api

Interacts with the gmail api, fetching emails


Version published
Weekly downloads
3.7K
decreased by-16.23%
Maintainers
1
Install size
3.98 MB
Created
Weekly downloads
 

Readme

Source

node-gmail-api

Node module to interact with the gmail api

Why not the google official library? Well it does too much and doesn't implement batching. Which means fetching a bunch of email is insanely painful. This module exposes a function which will query the api searching for messages and hit the google batch api to fetch all the messages that are returned.

Example

// Fetch latest 10 emails and show the snippet
var gmail = new Gmail(key)
  , s = gmail.messages('label:inbox', {max: 10})

s.on('data', function (d) {
  console.log(d.snippet)
})

Keywords

FAQs

Last updated on 13 Aug 2014

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc