Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@mapbox/mapbox-events

Package Overview
Dependencies
Maintainers
232
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mapbox/mapbox-events

Send events from the browser to the Mapbox events API.

  • 1.0.0
  • latest
  • npm
  • Socket score

Version published
Maintainers
232
Created
Source

Build Status

Mapbox Events

Send events from the browser to the Mapbox events API.

Each call to push() is batched. Batches are flushed and sent to the server when the size of the batch reaches the flushAt threshold or when the time since the last event was pushed reaches the flushAfter threshold.

Example

var events = require('@mapbox/mapbox-events')({
    token: 'mapbox api token',
    flushAt: 20,
    flushAfter: 10000
});

events.push({
    event: 'foo',
    attribute1: 'foo',
    attribute2: 'bar'
});

FAQs

Package last updated on 07 May 2018

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