Node.js

Installation

npm install --save enalog

Usage

In a file where you want to push an event from import the package:

import { pushEvent } from 'enalog';

Then you can push an event:

await pushEvent({
    project: 'EnaLog',
    name: 'user-subscribed',
    description: '',
    icon: '💰',
    tags: ['enalog'],
    meta: {
        user_name: 'Sam Newby',
    },
    push: true,
    user_id: "1234"
});