0.4.0 • Published 5 months ago

access-tracker v0.4.0

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

AccessTracker

Are you working on a tangled codebase with so many intertwined parts accessing each other in various untyped ways that you can't find where something is changing? The provided AccessTrackerProxy currently hands you a proxy that tracks get/set events and outputs a nice table to the console after a delay.

This might help. No promises.

Usage

const accessTracker = new AccessTrackerProxy<{ a: number, b?: number }>(3000);
const myObj = accessTracker.init({ a: 2 });
myObj.b = myObj.a * (myObj.b ?? 1) + myObj.a;
console.log(myObj.b);

This code will output a table similar to this one to the console after 3000 milliseconds:

Table with access counts

0.4.0

5 months ago

0.3.0

5 months ago

0.2.0

6 months ago

0.1.0

6 months ago