meanwhile(3)
Some setInterval sugar. A program keeps running, meanwhile a check is performed at a specified interval and if the resut is true, a callback gets called.
var meanwhile = require('meanwhile')
var x = false
meanwhile(
function() { return x },
function() { console.log('x is now true') }
)
x = true
I did this module to see how it feels to publish to npm from a gist. it works great and feels lite-weight.