zen-sleep-js

0.0.1 • Public • Published

zen-sleep-js

Dependency-free promise-based sleeping.

Installation

npm i zen-sleep-js -S

Usage

const sleep = require('zen-sleep-js');

// Sleep for 1 second and do something then.
sleep(1000).then(...);

// or
await sleep(1000);

License

MIT licensed.

Package Sidebar

Install

npm i zen-sleep-js

Weekly Downloads

1

Version

0.0.1

License

MIT

Unpacked Size

1.82 kB

Total Files

4

Last publish

Collaborators

  • jaxxreal