sleep3

1.0.0 • Public • Published

sleep3

Aysnc sleep, used on ES6+ (async/await).
Support string parameters like '10s' '5m', and numeric parameters millisecond.

NPM

Installation

npm install sleep3

Usage

const sleep = require('sleep3');

(async () => {
    console.log('begin');
    await sleep('10s');
    console.log('end');
})();

Support string parameters

's', 'm', 'h', 'd'
like '3s', '2m', '1h35s'

Readme

Keywords

Package Sidebar

Install

npm i sleep3

Weekly Downloads

1

Version

1.0.0

License

ISC

Unpacked Size

1.86 kB

Total Files

3

Last publish

Collaborators

  • nulijiacanfan