timeout-cmd
v1.1.0
Published
A command to sleep for specified time.
Downloads
29
Readme
README
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.