timeout-cmd

1.1.0 • Public • Published

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

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i timeout-cmd

      Weekly Downloads

      1

      Version

      1.1.0

      License

      MIT

      Unpacked Size

      3.57 kB

      Total Files

      5

      Last publish

      Collaborators

      • john-yuan