run-after

Run a command after given time

npm install run-after
5 downloads in the last week
9 downloads in the last month

run-after

Run a command after given time based on english-time

Examples:

$ run git push origin master after 5 seconds
$ run radio-paradise after an hour and 15 mins
$ run reboot after 2 weeks, 3d + 7h

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

Install

$ npm install run-after

Programmatical API

runAfter = require('run-after')

runAfter('echo foo', '1w 3d 7h').stdout.pipe(process.stdout);

npm loves you