Test function calls.

npm install bingo
3 downloads in the last week
3 downloads in the last month


Test function calls.

Getting Started

This module is not on npm yet but you can download it here on github.


// Require the module.
var bingo = require('bingo');

// Bingo that object.
var someObject = bingo(someObject);

// Get info about the function.
console.log(someObject.someFunction.didExecute() === false); // true
console.log(someObject.someFunction.timesExecuted()); // 0

// Call some function.

// Get info about the execution of the function.
console.log(someObject.someFunction.didExecute() === true); // true
console.log(someObject.someFunction.timesExecuted()); // 1


Yes yes, please, contribute. What else do you want to know about an execution of a function ?

Lint and test your code using grunt.

Release History

  • 0.1.0 (2012-09-14) First version


Copyright (c) 2012 Djorje Lukic

Licensed under the MIT license.

npm loves you