Scimmia
require
the Chaos Monkey into your code.
Credits to http://youtu.be/1CNcXeW8HdQ
Usage
require('scimmia')
in your code, when the monkey wakes up your process will exit.
; var count = 0; { console; ;} ;
Configuration
Scimmia could be configured to accept a timeout in milliseconds, otherwise it will wake up randomly (at max in 1 hour). In this example it will wake up at max in 3 seconds.
3000; var count = 0; { console; ;} ;
Scimmia could be configured to accept a timeout and a callback, which will be called just before
the monkey wakes up. Remember to call exit
! This can probably change in the future so you don't
have to worry.
3000 { console; ;}; var count = 0; { console; ;} ;