extra-sleep.sh 1.0.16
Install from the command line:
Learn more about npm packages
$ npm install @nodef/extra-sleep.sh@1.0.16
Install via package.json:
"@nodef/extra-sleep.sh": "1.0.16"
About this version
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
- Sleep (Unix): Wikipedia
- sleep package by Erik Dubbelboer
- setTimeout(): MDN Web docs
- Atomics.wait(): MDN Web docs