Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/arfedulov/debug-utils
A set of utility functions for debugging
https://github.com/arfedulov/debug-utils
Last synced: about 1 month ago
JSON representation
A set of utility functions for debugging
- Host: GitHub
- URL: https://github.com/arfedulov/debug-utils
- Owner: arfedulov
- Created: 2021-02-01T21:16:14.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2021-02-21T10:07:39.000Z (almost 4 years ago)
- Last Synced: 2024-11-18T10:57:04.048Z (about 2 months ago)
- Language: JavaScript
- Size: 1.95 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# debug-utils
## loggingProxy
Create a proxy object which produce logs on objbect's properties access,
writing and deleting.```js
const myObject = {
a: 'hello',
b: 123
};const proxy = loggingProxy(myObject, ['get', 'set', 'deleteProperty']);
const b = proxy.a; // accessing property a
proxy.f = 444; // writing property f = 444
delete proxy.b; // deleting property b
```