2.0.23 • Published 2 years ago

sleep.cmd v2.0.23

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Sleep for specified time in Windows Command prompt. šŸ–„ļø Command prompt, šŸ“œ Files.

sleep is a command in Unix-like operating systems that suspends program execution for specified time. This package provides the sleep command for Windows Command prompt, with exactly the same behaviour as in Unix-like systems. Please check examples below. Source code for the executable is written in C#. It should be noted small delays (few milliseconds) are less accurate.

Stability: Stable.

# Install on Windows
$ npm install -g sleep.cmd
$ sleep <number>[unit] | [option]
# Units:
# s: sleep for number seconds.
# m: sleep for number minutes.
# h: sleep for number hours.
# d: sleep for number days.
# Options:
# --help: get help
# --version: get version details
# sleep for 0.1 seconds
$ sleep 0.1

# sleep for 1.23 minutes
$ sleep 1.23m

# sleep for 1 day 23 hours
$ sleep 1d && sleep 23h

References

npm.io ORG DOI

2.0.22

2 years ago

2.0.23

2 years ago

2.0.15

3 years ago

2.0.16

3 years ago

2.0.19

3 years ago

2.0.17

3 years ago

2.0.18

3 years ago

2.0.20

3 years ago

2.0.21

3 years ago

2.0.13

3 years ago

2.0.14

3 years ago

2.0.11

3 years ago

2.0.12

3 years ago

2.0.9

3 years ago

2.0.10

3 years ago

2.0.8

3 years ago

2.0.7

3 years ago

2.0.6

3 years ago

2.0.5

3 years ago

2.0.4

3 years ago

2.0.3

3 years ago

2.0.2

3 years ago

2.0.1

3 years ago

2.0.0

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago