after-time

Declarative setTimeout

npm install after-time
3 downloads in the last day
29 downloads in the last week
127 downloads in the last month

after-time

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'
})

Install

$ npm install after-time

npm loves you