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
README.md Update README.md
index.js hello kitties
package.json 0.0.1

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

Something went wrong with that request. Please try again.