2.1.0 • Published 2 years ago

@logspot/node v2.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

@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' } 
});
2.1.0

2 years ago

2.0.3

3 years ago

2.0.2

3 years ago

2.0.4

3 years ago

2.0.1

3 years ago

2.0.0

3 years ago

1.0.2

3 years ago

1.0.3

3 years ago

1.0.1

4 years ago

1.0.0

4 years ago