Socket
Socket
Sign inDemoInstall

appuri-event-api-client

Package Overview
Dependencies
2
Maintainers
3
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    appuri-event-api-client

Client for the Appuri Event API


Version published
Maintainers
3
Install size
3.98 MB
Created

Readme

Source

Appuri Event Sink Client

A NodeJS Promise-based client for sending a stream of events to Appuri's Events API

Usage

The following example uses through2 to convert a custom data format to Appuri's Event Format.

node
const eventAPI = require('appuri-event-api-client'),
      through2 = require('through2')

function transform(chunk, enc, cb) {

    // convert custom event type to appuri event
}

eventAPI(through2.obj(transform), 'your-event-write-key')
    .then(() => console.log('Complete!'))
    .catch(error => console.log('Failed to upload: ', error))

Keywords

FAQs

Last updated on 18 Nov 2016

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