# TIMER-SHIM

> All problems in computer science can be solved by another level of indirection

TIMER-SHIM is a simple wrapper around standard timer functions which allows you 
to stub / test / fake their call and timing function without resorting to 
tricky global setTimeout/setInterval override.

If you have trouble getting mocha and sinon fake timers to behave, you might 
find this simple module useful.

Additionally, TIMER-SHIM also provides a few niceties over standard timer 
functions, including:

* Call with timeout number before the function.
* Shorter and simpler aliases without any magic or prototype infection.
* Validates against NaN and non-function values to save you debugging time.

At its core, it simply delegates the calls to setTimeout/setInterval internally 
but by calling those function via TIMER-SHIM you can more easily test your 
time-dependent code.


# GITHUB / MORE INFO

https://raw.github.com/chakrit/timer-shim

# NPM

$ npm install timer-shim --save

-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

Reply via email to