1.1.4 • Published 11 months ago
obsolog-js v1.1.4
obsolog-js
This is the package of Obsolog, the Dead-Simple Monitoring Tool!
Installation
Using npm:
npm install obsolog-js
Using yarn:
yarn add obosolog-js
Using pnpm
pnpm add obsolog-js
Usage
After creating and storing your API Key, add it to your .env
file, create your Obsolog client:
const obsolog = new Obsolog({
token: 'TOKEN_HERE'
})
Then, track your events like this:
obs.trackEvent({
name: 'Event name',
description: 'Description',
user: 'some-user-id',
channel: 'auth.user'
})