New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

nylas-stream

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nylas-stream

Streaming Wrapper for Nylas API

  • 0.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Nylas-Stream

A simple wrapper around the Nylas Delta API. Uses Node’s EventEmitter API to expose the different messages the delta endpoint spits out. Uses some of the concepts in Emittable and Node-Tweet-Stream behind the scenes to make the wrapper seamless without relying on Promises or Callbacks.

Installation

---------------
git clone https://github.com/trever/nylas-stream
cd nylas-stream
npm install
node test.js

--------------
npm install nylas-stream

var nylas_stream = require('nylas-stream');
var user = nylas_stream().user( < ACCESS_TOKEN > [, < NAMESPACE > ]);                                          
var sub = user.subscribe([ < CURSOR >]);
sub.events({
	'create_message':function(message){
    	console.log('Message: ', message);                              
	}
});

Usage

See above! More to come.

Methods

Nylas_Stream.user(access_token [, namespace, callback])
user.subscribe([cursor, events])
user.events(eventMap)
user.event(eventName, eventCallback)

Keywords

FAQs

Package last updated on 23 Jun 2015

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

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