sindresorhus/delay-cli

Delay execution for a given amount of seconds

85

stars

11

commits

JavaScript

primary language

Nov 2, 2025

updated

cli-app
delay
nodejs
npm-package
sleep

README

delay-cli

Delay execution for a given duration

Similar to the sleep command, but cross-platform and with support for human-readable durations.

Install

npm install --global delay-cli

Usage

$ delay --help

  Usage
    $ delay <duration>

  Examples
    $ delay 4.3 && echo πŸ¦„
    $ delay 2s && echo πŸ¦„
    $ delay 500ms && echo πŸ¦„
    $ delay 1m 30s && echo πŸ¦„

  The duration can be a number in seconds or a human-readable duration like "1h 30m".

The duration can be specified as:

  • A number in seconds: 2, 4.3, 0.5
  • Human-readable format: 500ms, 2s, 1m, 1h30m, 1m 30s, 2 days 5 hours

Supported units: ns, ms, s, m, h, d, w (and their long forms like seconds, minutes, etc.)

Contributors

sindresorhus

9 commits

fregante

1 commits

Richienb

1 commits

sindresorhus/delay-cli

Delay execution for a given amount of seconds

85

stars

11

commits

JavaScript

primary language

Nov 2, 2025

updated

cli-app
delay
nodejs
npm-package
sleep

README

delay-cli

Delay execution for a given duration

Similar to the sleep command, but cross-platform and with support for human-readable durations.

Install

npm install --global delay-cli

Usage

$ delay --help

  Usage
    $ delay <duration>

  Examples
    $ delay 4.3 && echo πŸ¦„
    $ delay 2s && echo πŸ¦„
    $ delay 500ms && echo πŸ¦„
    $ delay 1m 30s && echo πŸ¦„

  The duration can be a number in seconds or a human-readable duration like "1h 30m".

The duration can be specified as:

  • A number in seconds: 2, 4.3, 0.5
  • Human-readable format: 500ms, 2s, 1m, 1h30m, 1m 30s, 2 days 5 hours

Supported units: ns, ms, s, m, h, d, w (and their long forms like seconds, minutes, etc.)

Contributors

sindresorhus

9 commits

fregante

1 commits

Richienb

1 commits

Languages

JavaScript

100.0%