@logspot/node
v2.1.0
Published
Logspot Node SDK
Downloads
7
Readme
@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: '[email protected] has subscribed',
userId: '[email protected]',
metadata: { additionalData: '123' }
});