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

2.0.0 • Public • Published

Build Status

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:

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

Typescript:

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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 2.0.0
    141
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 2.0.0
    141

Package Sidebar

Install

npm i wait-sleep

Weekly Downloads

141

Version

2.0.0

License

MIT

Unpacked Size

5.3 kB

Total Files

15

Last publish

Collaborators

  • jammymalina