| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Delay execution for a given duration
Similar to the sleep command, but cross-platform and with support for human-readable durations.
npm install --global delay-cli$ 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:
Supported units: ns, ms, s, m, h, d, w (and their long forms like seconds, minutes, etc.)
| Back | FazBrowse Home | New Git URL |