0.4.0 • Published 5 months ago
access-tracker v0.4.0
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: