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

1.0.1 • Public • Published

sleep-lightweight 💤

Version

Lightweight helper function to wait x milliseconds asynchronously.

Install

npm install --save sleep-lightweight

Or via Yarn:

yarn add sleep-lightweight

Usage

import { sleep } from "sleep-lightweight";

await sleep(5 * 1000) // wait for 5 seconds

"wHy dO i NEeD A LiBrary FOr that?!"

You don't ofc. I wanted mine. Feel free to re-use it.

😴

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.1
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.1
    0
  • 1.0.0
    0

Package Sidebar

Install

npm i sleep-lightweight

Weekly Downloads

0

Version

1.0.1

License

MIT

Unpacked Size

5.91 kB

Total Files

7

Last publish

Collaborators

  • maks-io