@fluidattacks/tracks
v0.5.1
Published
TypeScript library for usage analytics
Readme
@fluidattacks/tracks
This library provides a convenient way to report usage analytics from any TypeScript or JavaScript application.
All operations run in the background, and errors are logged but don't propagate to the caller, ensuring your application's flow isn't interrupted.
Usage
import { Tracks } from "@fluidattacks/tracks";
const client = new Tracks();
client.event.create({
action: "CREATE",
author: "author",
date: new Date(),
mechanism: "API",
metadata: { foo: "bar" },
object: "object",
objectId: "objectId",
});