# wait-sleep

> Simple wait/sleep function

Latest version **2.0.0** (published 2019-11-21) · MIT license · 0 weekly downloads

## Install

```sh
npm install wait-sleep
pnpm add wait-sleep
yarn add wait-sleep
bun add wait-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 | 2.0.0 |
| Published | 2019-11-21 |
| First published | 2019-11-21 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 5.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Jakub Jantosik |
| Maintainers | jammymalina |
| Keywords | sleep, wait, timeout |

## Links

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

## Alternatives

- [promise-throttle](https://npm.io/package/promise-throttle.md) — 44.2K weekly downloads
- [@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

## Recent versions

- 2.0.0 (latest) — 2019-11-21

## README

[![Build Status](https://travis-ci.com/jammymalina/wait-sleep.svg?branch=master)](https://travis-ci.com/jammymalina/wait-sleep)

# wait-sleep

Simple sleep/wait function.

## Install
Get in the mood with Fire Blood and Steel from Brothers of Metal

`npm i -S wait-sleep`

## Usage

Javascript:
```javascript
const timer = require('wait-sleep');
await timer.sleep(1000); // sleeps for 1 second
await timer.wait(1000); // waits for 1 second
```

Typescript:
```typescript
import { sleep, wait } from "wait-sleep";
await sleep(1000); // sleeps for 1 second
await wait(1000); // waits for 1 second
```

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