1.0.1 ā€¢ Published 11 months ago

sleep-lightweight v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months ago

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.

šŸ˜“