waiting-js
v1.0.4
Published
Add sleep() to javascript code
Downloads
2
Readme
Waiting-js
Very useful for timing code, or waiting.
First package made by Veqsa
Installation
How to install the waiting package using npm
npm install waiting-js
Usage
How to use the waiting package
const waiting = require('waiting-js')
waiting.sleep({
time: 1, // Amount of time the code should wait
time_format: 'seconds' // Format of the time
})
time_format
- Hours - 'hours', 'h'
- Minutes - 'minutes', 'min', 'm'
- Seconds - 'seconds', 'sec', 's'