Slumber Promise-based sleeping for node Install yarn $ yarn add node-slumber npm $ npm i node-slumber Usage const slumber = require('node-slumber'); slumber(1000) .then(...) API slumber(ms) ms Type: number The amount of time in milliseconds you want the process to sleep for.