An open API service indexing awesome lists of open source software.

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: 2 months ago
JSON representation

⏱ Run a sleep-like command in multiple OSes

Awesome Lists containing this project

README

        

[![npm (tag)](https://img.shields.io/npm/v/sleepx?color=green&label=NPM&style=for-the-badge)](https://github.com/thiagodp/sleepx/releases)
[![License](https://img.shields.io/npm/l/sleepx.svg?style=for-the-badge&color=green)](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)