# @highoutput/delay

> ## `delay(duration)` * `duration` `(number|string)` Amount of time to wait * Returns: `(Promise)`

Latest version **0.2.8** (published 2021-09-01) · MIT license · 0 weekly downloads

## Install

```sh
npm install @highoutput/delay
pnpm add @highoutput/delay
yarn add @highoutput/delay
bun add @highoutput/delay
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.8 |
| Published | 2021-09-01 |
| First published | 2019-11-26 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | High Output Ventures |
| Maintainers | nberongoy, highoutputventures, highoutputdev, alclarin, vmc08 |

## Links

- npm: https://www.npmjs.com/package/@highoutput/delay
- npm.io page: https://npm.io/package/@highoutput/delay

## Dependencies (2)

- [ms](https://npm.io/package/ms.md) ^2.1.2
- [@types/node](https://npm.io/package/@types/node.md) ^14.11.1

## Recent versions

- 0.2.8 (latest) — 2021-09-01
- 0.2.6 — 2021-07-16
- 0.2.5 — 2020-09-19
- 0.2.4 — 2020-09-19
- 0.2.1 — 2020-01-24
- 0.2.0 — 2020-01-24
- 0.1.2 — 2020-01-08
- 0.1.1 — 2020-01-08
- 0.1.0 — 2019-11-26

## README

# @highoutput/delay

## `delay(duration)`
* `duration` `(number|string)` Amount of time to wait
* Returns: `(Promise)`

Wait for a given amount of time. The input can be a string compatible to the [`ms`](https://www.npmjs.com/package/ms) module.

### Examples
```javascript
import { delay } from 'highoutput-utilities';

async function main() {
  await delay(1000); // wait for 1 second

  await delay('1m'); // wait for 1 minute
}

main();
```

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