npm.io
1.1.0 • Published 2 years agoCLI

timeout-cmd

Licence
MIT
Version
1.1.0
Deps
0
Size
3 kB
Vulns
0
Weekly
0

README

npm version install size npm downloads

A command to sleep for specified time.

npm i timeout-cmd --save-dev

Usage

# sleep 2 seconds
npx timeout-cmd 2

# sleep 2.5 seconds
timeout-cmd 2.5s

# sleep 100 milliseconds
npx timeout-cmd 100ms

Options

COMMAND
  timeout-cmd <time>

EXAMPLES
  # sleep 2 seconds
  timeout-cmd 2
  # sleep 2.5 seconds
  timeout-cmd 2.5s
  # sleep 100 milliseconds
  timeout-cmd 100ms

  Note: The unit can be "s" or "ms" and it is optional.
        The default unit is "s".

OPTIONS
  --help, -h       Print this message.

License

MIT

Keywords