# cli-sleep

> Sleep for specified time in Windows Command prompt.

Latest version **2.0.11** (published 2022-06-18) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install cli-sleep
pnpm add cli-sleep
yarn add cli-sleep
bun add cli-sleep
```

Provides the command `sleep`.

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 2.0.11 |
| Published | 2022-06-18 |
| First published | 2018-08-02 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 13.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | wolfram77@gmail.com |
| Maintainers | wolfram77 |
| Keywords | sleep, cmd, windows, cli, command, line, interface, console, application, prompt |

## Links

- npm: https://www.npmjs.com/package/cli-sleep
- Repository: https://github.com/nodef/sleep.cmd
- Homepage: https://github.com/nodef/sleep.cmd#readme
- Issues: https://github.com/nodef/sleep.cmd/issues
- npm.io page: https://npm.io/package/cli-sleep

## Alternatives

- [@salesforce/cli](https://npm.io/package/@salesforce/cli.md) — 389.7K weekly downloads
- [@mintlify/cli](https://npm.io/package/@mintlify/cli.md) — 208.9K weekly downloads
- [@grafana/e2e-selectors](https://npm.io/package/@grafana/e2e-selectors.md) — 128.7K weekly downloads
- [mintlify](https://npm.io/package/mintlify.md) — 112.0K weekly downloads
- [@intlayer/cli](https://npm.io/package/@intlayer/cli.md) — 22.8K weekly downloads

## Recent versions

- 2.0.11 (latest) — 2022-06-18
- 2.0.10 — 2022-05-13
- 2.0.9 — 2022-05-13
- 2.0.8 — 2022-04-20
- 2.0.7 — 2022-04-10
- 2.0.6 — 2022-04-10
- 2.0.5 — 2022-04-09
- 2.0.4 — 2022-04-09
- 2.0.3 — 2022-04-09
- 2.0.2 — 2022-04-09
- 2.0.1 — 2022-04-09
- 2.0.0 — 2022-04-09
- 1.0.1 — 2018-08-02
- 1.0.0 — 2018-08-02
- 0.1.0 — 2018-08-02
- … 9 more at https://npm.io/package/cli-sleep/versions

## README

Sleep for specified time in Windows Command prompt.<br>
🖥️ [Command prompt](https://www.npmjs.com/package/sleep.cmd),
📜 [Files](https://unpkg.com/sleep.cmd/).

[sleep] is a command in *Unix-like* operating systems that **suspends program**
**execution** for specified time. This package provides the `sleep` command for
Windows [Command prompt], with exactly the **same behaviour** as in *Unix-like*
*systems*. Please check examples below. [Source code] for the executable is
written in `C#`. It should be noted *small delays* (few milliseconds) are *less*
*accurate*.

> Stability: [Stable](https://www.youtube.com/watch?v=L1j93RnIxEo).

[sleep]: https://en.wikipedia.org/wiki/Sleep_(Unix)
[Command prompt]: https://en.wikipedia.org/wiki/Cmd.exe
[Source code]: https://replit.com/@wolfram77/sleep-cmd

<br>

```bash
# Install on Windows
$ npm install -g sleep.cmd
```

<br>

```bash
$ sleep <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
```

<br>

```bash
# sleep for 0.1 seconds
$ sleep 0.1

# sleep for 1.23 minutes
$ sleep 1.23m

# sleep for 1 day 23 hours
$ sleep 1d && sleep 23h
```

<br>
<br>


## References

- [sleep (Unix)][sleep]
- [Thread.Sleep Method (C#)](https://docs.microsoft.com/en-us/dotnet/api/system.threading.thread.sleep)

<br>
<br>

[![](https://img.youtube.com/vi/rCSCPujLs14/maxresdefault.jpg)](https://www.youtube.com/watch?v=rCSCPujLs14)

---
_Source: https://npm.io/package/cli-sleep · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
