dorythefish
v2.0.1
Published
Function `sleep` for JavaScript. >sleep(seconds) -> Promise ## Installation
Downloads
5
Readme
Sleep
Function sleep
for JavaScript.
sleep(seconds) -> Promise
Installation
npm i webgirlkristina-sleep
Usage
const sleep = require('webgirlkristina-sleep');
const test = async () => {
console.log('text1');
await sleep(2); //sleep for 2 seconds
console.log('text2');
};
test();
```# dorythefish