https://github.com/icholy/snoop.js
A debugging tool that logs method invocations on an object.
https://github.com/icholy/snoop.js
Last synced: 3 months ago
JSON representation
A debugging tool that logs method invocations on an object.
- Host: GitHub
- URL: https://github.com/icholy/snoop.js
- Owner: icholy
- Created: 2014-08-14T20:39:08.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2016-01-19T21:27:39.000Z (over 9 years ago)
- Last Synced: 2025-01-30T03:13:14.044Z (5 months ago)
- Language: TypeScript
- Homepage:
- Size: 42 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Snoop.js
========> This is a debugging tool that logs method invocations on an object.
> The API was designed to be easy to use interactively with autocomplete.[Bookmarklet](https://output.jsbin.com/fujeyomoyu/1)

### Register an object to snoop on.
``` js
Snoop.register('$', $);// turn on snooping for all methods
Snoop.register('$', $, true);
```### Turn on snooping for `$.ajax`
``` js
Snoop.$.ajax.on();
```### Turn off snooping for `$.ajax`
``` js
Snoop.$.ajax.off();
```### Demo
