open-index/open-npm huggingface dataset:
npm package: @guoyunhe/sleep
Description: a better sleep function
Author: Guo Yunhe
Latest version: 1.0.0

# @guoyunhe/sleep

![Version](https://img.shields.io/npm/v/@guoyunhe/sleep)
![Downloads](https://img.shields.io/npm/dw/@guoyunhe/sleep)
![Bundle size](https://img.shields.io/bundlephobia/minzip/@guoyunhe/sleep)

a better sleep function

## Installation

```bash
npm install --save @guoyunhe/sleep
```

## Examples

```js
import { sleep } from '@guoyunhe/sleep';

await sleep(2000); // 2 seconds
```