Pause and resume function calls
$ npm install pause-function
pause = require('pause-function')
echo = pause(print)
echo('hello')
echo('world')
echo.resume()
// hello
// world
echo('span eggs')
// span eggs
function print (msg) {
console.log(' => ', msg)
}
See test.js
for more info