1.0.1 • Published 12 months ago

tracker-storage v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
12 months ago

TrackerStorage

TrackerStorage

TrackerStorage is a powerful tool for developers to store and track various types of data or events within their applications. Whether you need to capture errors, clicks, debug information, or other critical events, TrackerStorage provides a simple and efficient way to handle and display this data on a dedicated dashboard.

Features

  • Chunk Storage: Store any type of data or event you want to track, along with its name and type.

  • Error Tracking: Seamlessly capture and log errors using a simple API call within your try-catch blocks.

  • Dashboard Display: Visualize and manage your tracked data through an intuitive dashboard.

Installation

npm install tracker-storage

Initialization

import { TrackerStorageInitializer } from "tracker-storage";

const TrackerStorage = new TrackerStorageInitializer(YOUR_API_KEY);

Usage

  • .track() accepts two parameters, the first one is your chunk object which you want to keep track of, and the second is an object of options

try{ const res = await fetch(URL); ... }catch(err) { TrackerStorage.track({error: err, meta:{occured: new Date()}},{name:"Error on fetching", type:"FAIL"}) / other handling / }

  • type: SUCCESS | FAIL | OTHER, which will differentiate the objects on the dashboard
1.0.1

12 months ago

1.0.0

12 months ago

0.0.1

1 year ago