phpsleep
v1.0.0
Published
"# npm-package.-PHP-sleep-function-for-JS"
Downloads
2
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();