https://github.com/azer/run-after
Run a command after given time based on english-time
https://github.com/azer/run-after
Last synced: 11 months ago
JSON representation
Run a command after given time based on english-time
- Host: GitHub
- URL: https://github.com/azer/run-after
- Owner: azer
- Created: 2013-05-21T05:05:33.000Z (about 13 years ago)
- Default Branch: master
- Last Pushed: 2013-05-21T06:02:37.000Z (about 13 years ago)
- Last Synced: 2025-05-09T08:11:49.566Z (about 1 year ago)
- Language: Ruby
- Homepage:
- Size: 121 KB
- Stars: 10
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## run-after
Run a command after given time based on [english-time](http://github.com/azer/english-time).
Examples:
```bash
$ 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](http://github.com/azer/english-time) for more examples and full reference of the supported time inputs.
Looking for a daemon more commands like Cron? Try: [shell-jobs](http://github.com/azer/shell-jobs)
## Install
```bash
$ npm install -g run-after
```
## Programmatical API
```js
runAfter = require('run-after')
runAfter(['git', 'pull', '--rebase'], '1w 3d 7h')
```
