Run a command after given time based on english-time
Ruby JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
bin
docs
.gitignore
.npmignore
README.md
index.js
package.json

README.md

run-after

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

Examples:

$ run git push origin master after 5 seconds
$ run play http://www.bwaaamp.net/airhorn.mp3 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

Install

$ npm install -g run-after

Programmatical API

runAfter = require('run-after')

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