Stream your Mixpanel live events to your terminal
npm install -g mixpanel-tail
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
See all possible options with:
mixpanel-tail --help
npm install mixpanel-tail --save
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.
No. This project is not affiliated or endorsed by Mixpanel.
- Torii - https://toriihq.com
- Tal Bereznitskey. Find me on Twitter as @ketacode at https://twitter.com/ketacode