@logspot/node
TypeScript icon, indicating that this package has built-in type declarations

2.1.0 • Public • Published

@logspot/node

Logspot Node SDK for Node.js application.

Installation

npm install @logspot/node

or

yarn add @logspot/node

Usage

Init

import Logspot from '@logspot/node';

Logspot.init({ secretKey: 'YOUR_SECRET_KEY' });

Track

Logspot.track({ 
    event: 'UserSubscribed', 
    notify: true,
    message: 'john@doe.com has subscribed',
    userId: 'john@doe.com', 
    metadata: { additionalData: '123' } 
});

Readme

Keywords

none

Package Sidebar

Install

npm i @logspot/node

Weekly Downloads

17

Version

2.1.0

License

MIT

Unpacked Size

7.8 kB

Total Files

7

Last publish

Collaborators

  • logspot