Big News: Socket Selected for OpenAI's Cybersecurity Grant Program.Details
Socket
Book a DemoSign in
Socket

delay-cli

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

delay-cli

Delay execution for a given duration

latest
Source
npmnpm
Version
3.0.0
Version published
Weekly downloads
9K
-3.41%
Maintainers
1
Weekly downloads
 
Created
Source

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

Keywords

cli-app

FAQs

Package last updated on 02 Nov 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts