1.0.3 • Published 4 years ago
PAUSE-MS
Utility without dependencies to pause your code.
Installation
Use the package manager to install pause-ms
npm:
npm install pause-ms
yarn:
yarn install pause-ms
Usage
import wait from 'pause-ms'
for (let i = 1; i < 5; i++) {
wait(1000)
console.log(i)
}
Pull requests are welcome!