extra-sleep.sh
v1.0.20
Published
Sleep for specified time.
Downloads
43
Maintainers
Readme
Sleep for specified time. 📦 Node.js, 🌐 Web, 🐚 Shell, 📜 Files, 📰 Docs, 📘 Wiki.
sleep is a command in Unix-like operating systems that suspends program
execution for specified time. This package provides the esleep
command,
with a similar behaviour. Please check examples below. It should be noted
small delays (few milliseconds) are not accurate.
Stability: Experimental.
# Install
$ npm install -g extra-sleep.sh
$ esleep <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
$ esleep 0.1
# sleep for 1.23 minutes
$ esleep 1.23m
# sleep for 1 day 23 hours
$ esleep 1d 23h