https://github.com/thiagodp/sleepx
⏱ Run a sleep-like command in multiple OSes
https://github.com/thiagodp/sleepx
cli linux macos sleep terminal timeout tool wait windows
Last synced: 17 days ago
JSON representation
⏱ Run a sleep-like command in multiple OSes
- Host: GitHub
- URL: https://github.com/thiagodp/sleepx
- Owner: thiagodp
- License: mit
- Created: 2022-01-17T00:55:31.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-01-17T01:28:22.000Z (over 4 years ago)
- Last Synced: 2025-02-17T15:16:12.336Z (about 1 year ago)
- Topics: cli, linux, macos, sleep, terminal, timeout, tool, wait, windows
- Language: JavaScript
- Homepage:
- Size: 6.84 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE.txt
Awesome Lists containing this project
README
[](https://github.com/thiagodp/sleepx/releases)
[](LICENSE.txt)
# sleepx
> ⏱ Run the same sleep-like command in multiple OSes
- Same syntax as Unix's `sleep`
- Runs on any OS that NodeJS runs
- Works with NodeJS 8+
- No external dependencies
## Install
```bash
$ npm i -g sleepx
```
## Usage
Sleep for 5 seconds:
```bash
$ sleepx 5
```
Sleep for 5 hours:
```bash
$ sleepx 5h
```
Sleep for 5 days:
```bash
$ sleepx 5d
```
Other:
```bash
$ sleepx --version
$ sleepx --help
```
## License
[MIT](LICENSE.txt) © [Thiago Delgado Pinto](https://github.com/thiagodp)