# ko-sleep

> A promise wrapper for `setTimeout`

Latest version **1.1.4** (published 2021-09-30) · MIT license · 0 weekly downloads

## Install

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

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.4 |
| Published | 2021-09-30 |
| First published | 2015-11-14 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 3.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 4 |
| Author | alsotang |
| Maintainers | alsotang |
| Keywords | promise, sleep |

## Links

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

## Dependencies (1)

- [ms](https://npm.io/package/ms.md) *

## Alternatives

- [@commercetools/sync-actions](https://npm.io/package/@commercetools/sync-actions.md) — 25.1K weekly downloads
- [cwait](https://npm.io/package/cwait.md) — 21.4K weekly downloads
- [@ledgerhq/hw-app-cosmos](https://npm.io/package/@ledgerhq/hw-app-cosmos.md) — 4.2K weekly downloads
- [@financial-times/o-loading](https://npm.io/package/@financial-times/o-loading.md) — 2.8K weekly downloads
- [fa](https://npm.io/package/fa.md) — 185 weekly downloads

## Recent versions

- 1.1.4 (latest) — 2021-09-30
- 1.1.3 — 2021-09-30
- 1.1.2 — 2021-09-30
- 1.1.1 — 2021-09-30
- 1.1.0 — 2021-09-30
- 1.0.3 — 2017-05-20
- 1.0.2 — 2015-11-14
- 1.0.1 — 2015-11-14
- 1.0.0 — 2015-11-14

## README

# ko-sleep

[![Build Status](https://travis-ci.org/alsotang/ko-sleep.svg)](https://travis-ci.org/alsotang/ko-sleep)

A promise wrapper for `setTimeout`

## usage

```js
sleep(time: number | string): Promise<void>
```

time - millisecond number, or '1s' which https://www.npmjs.com/package/ms support

## example

```js
import sleep from 'ko-sleep'

await sleep(3 * 1000)
await sleep('3s')
```

## license

MIT

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