Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/icholy/snoop.js
A debugging tool that logs method invocations on an object.
https://github.com/icholy/snoop.js
Last synced: about 1 month 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 (over 10 years ago)
- Default Branch: master
- Last Pushed: 2016-01-19T21:27:39.000Z (almost 9 years ago)
- Last Synced: 2024-10-03T15:19:34.134Z (about 2 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)
![](http://i.imgur.com/nQv8ADL.jpg)
### 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
![](http://i.imgur.com/GeYpexW.gif)