npm install p-sleepPromisified sleep function.
``sh`
npm install --save p-sleep
`js
const sleep = require('p-sleep')
sleep(200).then(() => console.log('World!'))
sleep(100).then(() => console.log('Hello,'))
`
Returns a Promise that resolves after ms` milliseconds.