https://github.com/mrloop/object-tracer
https://github.com/mrloop/object-tracer
Last synced: 11 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/mrloop/object-tracer
- Owner: mrloop
- Created: 2023-02-05T08:02:13.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-02-05T08:05:20.000Z (almost 3 years ago)
- Last Synced: 2025-01-04T23:18:41.466Z (about 1 year ago)
- Language: TypeScript
- Size: 61.5 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# object-tracer
**A work in progress**
`object-tracer` allows you to listen to different events on an object:
* `Method Calls` - what does the object do
* `Traces` - TODO - how the object is used by the application
* `State Mutations` - what happens inside the object
Heavily inspired by the ruby package [`ObjectTracer`](https://github.com/st0012/object_tracer)
**The goal is to let you know all the information you need for debugging with a single line of code.**
## Installation
```
pnpm install object-tracer --save-dev
```
## Usage
### Track Method Calls
### Track Traces
### Track State Mutations
### Track All Instances of a a Class