[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#743162: ITP: node-hooker -- Monkey-patch (hook) functions for debugging and stuff.

Package: wnpp
Severity: wishlist
Owner: matthewp <matthewp_debian@teledetection.fr>

* Package name    : node-hooker
  Version         : 0.2.3
  Upstream Author : Cowboy <cowboy@rj3.net>
* URL             : http://github.com/cowboy/javascript-hooker
* License         : MIT
  Programming Lang: js
  Description     : Monkey-patch (hook) functions for debugging and stuff.

This library easy the debug hooking an object with a 'preHookFunction'. For example:

hooker.hook(Math, "max", function() {
  console.log(arguments.length + " arguments passed");
Math.max(5, 6, 7) // logs: "3 arguments passed", returns 7

It will also provide a javascript library.
This library is needed for the gruntjs packaging, supported by the pkg-js-team.

Reply to: