# p-sleep

> Promisified sleep function.

Latest version **1.1.0** (published 2018-01-17) · MIT license · 0 weekly downloads

## Install

```sh
npm install p-sleep
pnpm add p-sleep
yarn add p-sleep
bun add p-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.0 |
| Published | 2018-01-17 |
| First published | 2017-12-05 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Maintainers | linusu |

## Links

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

## Recent versions

- 1.1.0 (latest) — 2018-01-17
- 1.0.0 — 2017-12-05

## README

# p-sleep

Promisified sleep function.

## Installation

```sh
npm install --save p-sleep
```

## Usage

```js
const sleep = require('p-sleep')

sleep(200).then(() => console.log('World!'))
sleep(100).then(() => console.log('Hello,'))
```

## API

### `sleep(ms: number) => Promise<void>`

Returns a `Promise` that resolves after `ms` milliseconds.

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