Declarative setTimeout based on english-time
after = require('after-time')
after('150ms', function(){
console.log('yo!')
})
after('5 minutes', function(){
console.log('hello!')
})
after('3 Hours, 15 Minutes and 20 Milliseconds', function(){
console.log('yo!')
})
after('3h 15m 20ms', 'foo', 'bar', function(foo, bar){
foo
// => 'foo'
bar
// => 'bar'
})
$ npm install after-time