espera
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

espera

Simple async wrapper to wait for a certain amount of time.

Installation

Using npm:

npm i espera

Using yarn:

yarn add espera

Usage

Using CommonJS

const { sleep } = require('espera');

Using imports

import { sleep } from 'espera';

Then, in an async function:

// Some code ...
await sleep(4, Unit.seconds); // Will wait 4 seconds before continuing
// Some other code

Documentation

See DOCS

Readme

Keywords

Package Sidebar

Install

npm i espera

Weekly Downloads

40

Version

1.0.0

License

MIT

Unpacked Size

11.8 kB

Total Files

11

Last publish

Collaborators

  • alrico88