🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

mixpanel-tail

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mixpanel-tail

Live stream Mixpanel events to your terminal with programmatic API

latest
Source
npmnpm
Version
0.0.7
Version published
Maintainers
1
Created
Source

mixpanel-tail

Stream your Mixpanel live events to your terminal

CLI

Install

npm install -g mixpanel-tail

Run

Get your API_SECRET from the Mixpanel dashboard of your project

mixpanel-tail -a YOUR_API_SECRET

That's it! Logs will stream to your terminal

Help

See all possible options with:

mixpanel-tail --help

Programmatic API

Install

npm install mixpanel-tail --save

Use

const mixpanelTail = require('mixpanel-tail')

mixpanelTail({
  apiSecret: 'YOUR_API_SECRET', // required
  interval: 5000,
  verbose: false,
  startTime: Date.now(),
  handler: (arrayOfMixpanelEvents) => console.log('The events', arrayOfMixpanelEvents)
})

Use the handler to make interesting stuff, like streaming events to Slack.

Frequently Asked Questions

Is this affiliated or endorsed by Mixpanel?

No. This project is not affiliated or endorsed by Mixpanel.

Who made this?

  • Torii - https://toriihq.com
  • Tal Bereznitskey. Find me on Twitter as @ketacode at https://twitter.com/ketacode

Keywords

mixpanel

FAQs

Package last updated on 20 Nov 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