extra-sleep.sh

1.0.20 • Public • Published

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


References



DOI Coverage Status Test Coverage Maintainability

Package Sidebar

Install

npm i extra-sleep.sh

Weekly Downloads

2

Version

1.0.20

License

MIT

Unpacked Size

8.15 kB

Total Files

4

Last publish

Collaborators

  • wolfram77