Skip to content
Run a command after given time based on english-time
Ruby JavaScript
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
bin hello kitties
docs hello kitties
.gitignore hello kitties
.npmignore hello kitties Update
index.js hello kitties
package.json 0.0.1


Run a command after given time based on english-time.


$ run git push origin master after 5 seconds
$ run play after 2 mins and 15 secs
$ run reboot after 2 weeks and 3d 7h

See english-time for more examples and full reference of the supported time inputs.

Looking for a daemon more commands like Cron? Try: shell-jobs


$ npm install -g run-after

Programmatical API

runAfter = require('run-after')

runAfter(['git', 'pull', '--rebase'], '1w 3d 7h')

Something went wrong with that request. Please try again.