Declarative setTimeout
JavaScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
.npmignore
README.md
index.js
package.json
test.js

README.md

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